Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (nct6683) remove useless function

Fix the following clang warning:

drivers/hwmon/nct6683.c:491:19: warning: unused function 'in_to_reg'
[-Wunused-function].

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/1618293770-55307-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Jiapeng Chong and committed by
Guenter Roeck
c3dd4b7d 807b8c29

-11
-11
drivers/hwmon/nct6683.c
··· 492 492 return reg * scale; 493 493 } 494 494 495 - static inline u16 in_to_reg(u32 val, u8 src) 496 - { 497 - int scale = 16; 498 - 499 - if (src == MON_SRC_VCC || src == MON_SRC_VSB || src == MON_SRC_AVSB || 500 - src == MON_SRC_VBAT) 501 - scale <<= 1; 502 - 503 - return clamp_val(DIV_ROUND_CLOSEST(val, scale), 0, 127); 504 - } 505 - 506 495 static u16 nct6683_read(struct nct6683_data *data, u16 reg) 507 496 { 508 497 int res;