diff options
author | Tom Rix <trix@redhat.com> | 2023-03-23 17:15:35 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-04-19 07:08:33 -0700 |
commit | 8ea57c51e508d8c6ce1531b5336199ceeda39120 (patch) | |
tree | ff5246540bb13681b04be5f36bba476a5a5aab46 /drivers/hwmon/vt1211.c | |
parent | a7da8a8bf19b758d6db50a1c09627b0422fe98db (diff) | |
download | linux-stable-8ea57c51e508d8c6ce1531b5336199ceeda39120.tar.gz linux-stable-8ea57c51e508d8c6ce1531b5336199ceeda39120.tar.bz2 linux-stable-8ea57c51e508d8c6ce1531b5336199ceeda39120.zip |
hwmon: remove unused superio_outb function
clang with W=1 reports
drivers/hwmon/vt1211.c:198:20: error: unused function
'superio_outb' [-Werror,-Wunused-function]
static inline void superio_outb(int sio_cip, int reg, int val)
^
This function is not used so remove it.
Signed-off-by: Tom Rix <trix@redhat.com>
Acked-by: Juerg Haefliger <juergh@proton.me>
Link: https://lore.kernel.org/r/20230323211535.2637939-1-trix@redhat.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/vt1211.c')
-rw-r--r-- | drivers/hwmon/vt1211.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/hwmon/vt1211.c b/drivers/hwmon/vt1211.c index 4a5e911d26eb..fcd4be7a5a85 100644 --- a/drivers/hwmon/vt1211.c +++ b/drivers/hwmon/vt1211.c @@ -195,12 +195,6 @@ struct vt1211_data { /* VT1211 logical device numbers */ #define SIO_VT1211_LDN_HWMON 0x0b /* HW monitor */ -static inline void superio_outb(int sio_cip, int reg, int val) -{ - outb(reg, sio_cip); - outb(val, sio_cip + 1); -} - static inline int superio_inb(int sio_cip, int reg) { outb(reg, sio_cip); |