[PATCH v1 17/21] hwmon: (tmp421) Fix the type of 'config' in struct hwmon_channel_info to u64
Huisong Li
lihuisong at huawei.com
Mon Jan 20 22:45:15 PST 2025
The type of 'config' in struct hwmon_channel_info has been fixed to u64.
Modify the related code in driver to avoid compiling failure.
Signed-off-by: Huisong Li <lihuisong at huawei.com>
---
drivers/hwmon/tmp421.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/tmp421.c b/drivers/hwmon/tmp421.c
index 9537727aad9a..45bd04ec03b8 100644
--- a/drivers/hwmon/tmp421.c
+++ b/drivers/hwmon/tmp421.c
@@ -100,7 +100,7 @@ struct tmp421_channel {
struct tmp421_data {
struct i2c_client *client;
struct mutex update_lock;
- u32 temp_config[MAX_CHANNELS + 1];
+ u64 temp_config[MAX_CHANNELS + 1];
struct hwmon_channel_info temp_info;
const struct hwmon_channel_info *info[2];
struct hwmon_chip_info chip;
--
2.22.0
More information about the linux-arm-kernel
mailing list