Message ID | 20250121064519.18974-22-lihuisong@huawei.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | hwmon: Fix the type of 'config' in struct hwmon_channel_info to u64 | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Guessing tree name failed - patch did not apply |
diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c index 511d95a0efb3..dbb9d976284f 100644 --- a/drivers/hwmon/lm90.c +++ b/drivers/hwmon/lm90.c @@ -685,8 +685,8 @@ enum lm90_temp_reg_index { struct lm90_data { struct i2c_client *client; struct device *hwmon_dev; - u32 chip_config[2]; - u32 channel_config[MAX_CHANNELS + 1]; + u64 chip_config[2]; + u64 channel_config[MAX_CHANNELS + 1]; const char *channel_label[MAX_CHANNELS]; struct hwmon_channel_info chip_info; struct hwmon_channel_info temp_info;
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@huawei.com> --- drivers/hwmon/lm90.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)