summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/nct6775.h
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-11-15 14:57:01 -0600
committerGuenter Roeck <linux@roeck-us.net>2023-12-11 06:20:28 -0800
commit10a0575ea09dbc333ee952b707ea216020d8f77c (patch)
tree15764de1d2ef100521a1297631631a8a69997dd7 /drivers/hwmon/nct6775.h
parent5cfc392cc93b42d5b0bdea12eecb649887b9991d (diff)
downloadlinux-stable-10a0575ea09dbc333ee952b707ea216020d8f77c.tar.gz
linux-stable-10a0575ea09dbc333ee952b707ea216020d8f77c.tar.bz2
linux-stable-10a0575ea09dbc333ee952b707ea216020d8f77c.zip
hwmon: (nct6775-i2c) Use i2c_get_match_data()
Use preferred i2c_get_match_data() instead of of_match_device() and i2c_match_id() to get the driver match data. With this, adjust the includes to explicitly include the correct headers. Adjust the 'kinds' enum to not use 0, so that no match data can be distinguished from a valid enum value. Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20231115205703.3730448-2-robh@kernel.org [groeck: Use double cast for i2c_get_match_data() to make clang happy] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/nct6775.h')
-rw-r--r--drivers/hwmon/nct6775.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/nct6775.h b/drivers/hwmon/nct6775.h
index 296eff99d003..d31e7a030216 100644
--- a/drivers/hwmon/nct6775.h
+++ b/drivers/hwmon/nct6775.h
@@ -4,7 +4,7 @@
#include <linux/types.h>
-enum kinds { nct6106, nct6116, nct6775, nct6776, nct6779, nct6791, nct6792,
+enum kinds { nct6106 = 1, nct6116, nct6775, nct6776, nct6779, nct6791, nct6792,
nct6793, nct6795, nct6796, nct6797, nct6798, nct6799 };
enum pwm_enable { off, manual, thermal_cruise, speed_cruise, sf3, sf4 };