aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/hwmon/surface_fan.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2024-10-10 21:35:42 +0200
committerGuenter Roeck <linux@roeck-us.net>2024-11-10 14:48:06 -0800
commit79bc0af904db647979c735563299c9b0d820e432 (patch)
treef15c2f6eca3b6b158bef69f5ce29217595d227bd /drivers/hwmon/surface_fan.c
parenthwmon: (max31827) Fix spelling errors reported by codespell (diff)
downloadwireguard-linux-79bc0af904db647979c735563299c9b0d820e432.tar.xz
wireguard-linux-79bc0af904db647979c735563299c9b0d820e432.zip
hwmon: Add static visibility member to struct hwmon_ops
Several drivers return the same static value in their is_visible callback, what results in code duplication. Therefore add an option for drivers to specify a static visibility directly. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Message-ID: <89690b81-2c73-47ae-9ae9-45c77b45ca0c@gmail.com> groeck: Renamed hwmon_ops_is_visible -> hwmon_is_visible Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/surface_fan.c')
0 files changed, 0 insertions, 0 deletions