summaryrefslogtreecommitdiff
path: root/drivers/hwmon/w83791d.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2014-06-25 19:08:35 +0400
committerGuenter Roeck <linux@roeck-us.net>2014-08-04 18:01:36 +0400
commit7560dc0a6d45dbf0d32eb56172dd5062753a8dcc (patch)
treed634a14d17c21714da9d168fc3311f04dee58514 /drivers/hwmon/w83791d.c
parent034b44b4a22371c5bcbfb602a5420f3b75939dd8 (diff)
downloadlinux-7560dc0a6d45dbf0d32eb56172dd5062753a8dcc.tar.xz
hwmon: (lm63) Fix smatch warnings
smatch complains as follows when checking lm63.c. drivers/hwmon/lm63.c:594 set_temp11() warn: '65504' 65504 can't fit into 32767 'data->temp11[nr]' drivers/hwmon/lm63.c:596 set_temp11() warn: '32768' 32768 can't fit into 32767 'data->temp11[nr]' 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/w83791d.c')
0 files changed, 0 insertions, 0 deletions