Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292141
b: refs/heads/master
c: 3c22e23
h: refs/heads/master
i:
  292139: 11c120a
v: v3
  • Loading branch information
Guenter Roeck authored and Guenter Roeck committed Mar 19, 2012
1 parent 2e5defb commit ae49eb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3c56b066fb62e4aee95e4b3acff35296765a25d1
refs/heads/master: 3c22e2326015e79822837aaa44eaf15249f8af7b
7 changes: 4 additions & 3 deletions trunk/drivers/hwmon/smm665.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ enum chips { smm465, smm665, smm665c, smm764, smm766 };
#define SMM665_AIN_ADC_TO_VOLTS(adc) ((adc) * vref / 512)

/* Temp Sensor */
#define SMM665_TEMP_ADC_TO_CELSIUS(adc) ((adc) <= 511) ? \
#define SMM665_TEMP_ADC_TO_CELSIUS(adc) (((adc) <= 511) ? \
((int)(adc) * 1000 / 4) : \
(((int)(adc) - 0x400) * 1000 / 4)
(((int)(adc) - 0x400) * 1000 / 4))

#define SMM665_NUM_ADC 11

Expand Down Expand Up @@ -389,7 +389,8 @@ SMM665_SHOW(max);
SMM665_SHOW(lcrit);
SMM665_SHOW(crit);

/* These macros are used below in constructing device attribute objects
/*
* These macros are used below in constructing device attribute objects
* for use with sysfs_create_group() to make a sysfs device file
* for each register.
*/
Expand Down

0 comments on commit ae49eb0

Please sign in to comment.