diff options
author | 2024-10-11 21:55:28 +0200 | |
---|---|---|
committer | 2024-11-10 14:48:06 -0800 | |
commit | 5deb42295db7296e9c47f0647cc1eadcd2b4fb49 (patch) | |
tree | df1577143225d6d37ed166a54fa96ca284fa2f6a | |
parent | hwmon: (max6639) : Configure based on DT property (diff) | |
download | wireguard-linux-5deb42295db7296e9c47f0647cc1eadcd2b4fb49.tar.xz wireguard-linux-5deb42295db7296e9c47f0647cc1eadcd2b4fb49.zip |
hwmon: (i5500_temp) Simplify specifying static visibility attribute
Use new member visible of struct hwmon_ops to simplify specifying
the static attribute visibility.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Message-ID: <2b1f2778-1127-4979-b02d-f75e16497ad7@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r-- | drivers/hwmon/i5500_temp.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/hwmon/i5500_temp.c b/drivers/hwmon/i5500_temp.c index 7b00b38c7f7b..2a530da21949 100644 --- a/drivers/hwmon/i5500_temp.c +++ b/drivers/hwmon/i5500_temp.c @@ -29,12 +29,6 @@ #define REG_CTCTRL 0xF7 #define REG_TSTIMER 0xF8 -static umode_t i5500_is_visible(const void *drvdata, enum hwmon_sensor_types type, u32 attr, - int channel) -{ - return 0444; -} - static int i5500_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) { @@ -84,7 +78,7 @@ static int i5500_read(struct device *dev, enum hwmon_sensor_types type, u32 attr } static const struct hwmon_ops i5500_ops = { - .is_visible = i5500_is_visible, + .visible = 0444, .read = i5500_read, }; |