Home
last modified time | relevance | path

Searched refs:nct7802_vmul (Results 1 – 1 of 1) sorted by relevance

/drivers/hwmon/
Dnct7802.c284 static u8 nct7802_vmul[] = { 4, 2, 2, 2, 2 }; variable
299 ret = ((v1 << 2) | (v2 >> 6)) * nct7802_vmul[nr]; in nct7802_read_voltage()
311 ret = (v1 | ((v2 << shift) & 0x300)) * nct7802_vmul[nr]; in nct7802_read_voltage()
324 voltage = clamp_val(voltage, 0, 0x3ff * nct7802_vmul[nr]); in nct7802_write_voltage()
325 voltage = DIV_ROUND_CLOSEST(voltage, nct7802_vmul[nr]); in nct7802_write_voltage()