diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2024-10-11 23:03:13 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-11-11 01:48:06 +0300 |
commit | 182137ecfb37509127fc94b1edb2e2b5dc6fccf1 (patch) | |
tree | f4c906c83578c48670a106c4bc195cca1570f565 | |
parent | 39a8cf342bc2ad656b4bad536f930e2aa8562151 (diff) | |
download | linux-182137ecfb37509127fc94b1edb2e2b5dc6fccf1.tar.xz |
hwmon: (intel-m10-bmc) 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: <8ef99170-b37d-4c9a-b3bf-59f4ea76cf29@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r-- | drivers/hwmon/intel-m10-bmc-hwmon.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/hwmon/intel-m10-bmc-hwmon.c b/drivers/hwmon/intel-m10-bmc-hwmon.c index 96397ae6ff18..e221f2c1f332 100644 --- a/drivers/hwmon/intel-m10-bmc-hwmon.c +++ b/drivers/hwmon/intel-m10-bmc-hwmon.c @@ -565,13 +565,6 @@ static const struct m10bmc_hwmon_board_data n6000bmc_hwmon_bdata = { .hinfo = n6000bmc_hinfo, }; -static umode_t -m10bmc_hwmon_is_visible(const void *data, enum hwmon_sensor_types type, - u32 attr, int channel) -{ - return 0444; -} - static const struct m10bmc_sdata * find_sensor_data(struct m10bmc_hwmon *hw, enum hwmon_sensor_types type, int channel) @@ -729,7 +722,7 @@ static int m10bmc_hwmon_read_string(struct device *dev, } static const struct hwmon_ops m10bmc_hwmon_ops = { - .is_visible = m10bmc_hwmon_is_visible, + .visible = 0444, .read = m10bmc_hwmon_read, .read_string = m10bmc_hwmon_read_string, }; |