summaryrefslogtreecommitdiff
path: root/drivers/hwmon/lm93.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2014-06-30 07:34:30 -0700
committerGuenter Roeck <linux@roeck-us.net>2014-08-04 07:01:36 -0700
commit40ebdb9274ba71b6211f500904a3935af81a00ca (patch)
tree691716146bcd83a2e1c1b29e020231f878fc99ac /drivers/hwmon/lm93.c
parent7560dc0a6d45dbf0d32eb56172dd5062753a8dcc (diff)
downloadlwn-40ebdb9274ba71b6211f500904a3935af81a00ca.tar.gz
lwn-40ebdb9274ba71b6211f500904a3935af81a00ca.zip
hwmon: (w83791d) Fix smatch warning
smatch complains as follows when checking w83791d.c. drivers/hwmon/w83791d.c:996 store_temp23() warn: '32768' 32768 can't fit into 32767 'data->temp_add[nr][index]' Fix by using DIV_ROUND_CLOSEST and clamp_val to convert the values. While we are at it, modify other macros as well for consistency and to make the code easier to understand. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/lm93.c')
0 files changed, 0 insertions, 0 deletions