Commit 8deeac82 authored by Guenter Roeck's avatar Guenter Roeck Committed by Guenter Roeck

hwmon: (ad7414) Fix multi-line comments

Cc: Stefan Roese <sr@denx.de>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Acked-by: default avatarStefan Roese <sr@denx.de>
parent 5d577dba
...@@ -50,7 +50,8 @@ struct ad7414_data { ...@@ -50,7 +50,8 @@ struct ad7414_data {
/* REG: (0.25C/bit, two's complement) << 6 */ /* REG: (0.25C/bit, two's complement) << 6 */
static inline int ad7414_temp_from_reg(s16 reg) static inline int ad7414_temp_from_reg(s16 reg)
{ {
/* use integer division instead of equivalent right shift to /*
* use integer division instead of equivalent right shift to
* guarantee arithmetic shift and preserve the sign * guarantee arithmetic shift and preserve the sign
*/ */
return ((int)reg / 64) * 250; return ((int)reg / 64) * 250;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment