diff options
-rw-r--r-- | drivers/hwmon/g760a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/g760a.c b/drivers/hwmon/g760a.c index 19c01a49f6be..09ea12e0a551 100644 --- a/drivers/hwmon/g760a.c +++ b/drivers/hwmon/g760a.c | |||
@@ -68,7 +68,7 @@ struct g760a_data { | |||
68 | #define PWM_FROM_CNT(cnt) (0xff-(cnt)) | 68 | #define PWM_FROM_CNT(cnt) (0xff-(cnt)) |
69 | #define PWM_TO_CNT(pwm) (0xff-(pwm)) | 69 | #define PWM_TO_CNT(pwm) (0xff-(pwm)) |
70 | 70 | ||
71 | unsigned int rpm_from_cnt(u8 val, u32 clk, u16 div) | 71 | static inline unsigned int rpm_from_cnt(u8 val, u32 clk, u16 div) |
72 | { | 72 | { |
73 | return ((val == 0x00) ? 0 : ((clk*30)/(val*div))); | 73 | return ((val == 0x00) ? 0 : ((clk*30)/(val*div))); |
74 | } | 74 | } |