Skip to content

Commit 5b1d7a0

Browse files
krzkgroeck
authored andcommitted
hwmon: (sis5595) drop unused DIV_TO_REG function
'DIV_TO_REG' function is not used: sis5595.c:159:18: error: unused function 'DIV_TO_REG' [-Werror,-Wunused-function] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240225202841.60740-1-krzysztof.kozlowski@linaro.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent a095d8c commit 5b1d7a0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

drivers/hwmon/sis5595.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,9 @@ static inline s8 TEMP_TO_REG(long val)
153153
}
154154

155155
/*
156-
* FAN DIV: 1, 2, 4, or 8 (defaults to 2)
157-
* REG: 0, 1, 2, or 3 (respectively) (defaults to 1)
156+
* FAN DIV: 1, 2, 4, or 8
157+
* REG: 0, 1, 2, or 3 (respectively)
158158
*/
159-
static inline u8 DIV_TO_REG(int val)
160-
{
161-
return val == 8 ? 3 : val == 4 ? 2 : val == 1 ? 0 : 1;
162-
}
163159
#define DIV_FROM_REG(val) (1 << (val))
164160

165161
/*

0 commit comments

Comments
 (0)