pc87360 vref-int-ext - fix int/ext vref
Subsystems (2)
Jim Cromie
maintainerPATCH 1/2 pc87360 vref-int-ext - fix int/ext vref
01 pc87360-01-fix-vref-ext-int-mixup.patch
fixes a 1-line bug in the internal vs external voltage reference selection, Old code used vrefint when vrefext was chosen, and vice versa.
[jimc@harpo pset-pc87360-vref]$ diffstat pc87360-0*
2 files changed, 30 insertions(+), 2 deletions(-)
Signed-off-by Jim Cromie <[email protected]>
drivers/hwmon/pc87360.c +1 -1
@@ -798,7 +798,7 @@ static int pc87360_detect(struct i2c_ada i &=pc87360_read_value (data,LD_TEMP ,NO_BANK ,PC87365_REG_TEMP_CONFIG ); } - data->in_vref = (i&0x02 ) ?3025 :2966 ; + data->in_vref = (i&0x02 ) ?2966 :3025 ;dev_dbg (&new_client->dev,"Using %s reference voltage\n" , (i&0x02 ) ?"external" :"internal" );