hwmon: (emc1403) Fix table name to match driver
PATCH 1/1 hwmon: (emc1403) Fix table name to match driver
The temperature conversion time table is called "ina3221" but this driver is "emc1403", this looks to be a copy/paste error. Rename the table to match the driver.
Signed-off-by Andrew Davis <[email protected]>
--- drivers/hwmon/emc1403.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/hwmon/emc1403.c +3 -3
@@ -490,7 +490,7 @@ static int emc1403_temp_write(struct thermal_data *data, u32 attr, int channel, }/* Lookup table for temperature conversion times in msec */ -static const u16 ina3221_conv_time[] = { +static const u16 emc1403_conv_time[] = {16000 ,8000 ,4000 ,2000 ,1000 ,500 ,250 ,125 ,62 ,31 ,16 };
@@ -498,8 +498,8 @@ static int emc1403_set_convrate(struct thermal_data *data, unsigned int interval {int convrate; - convrate =find_closest_descending (interval, ina3221_conv_time, -ARRAY_SIZE (ina3221_conv_time)); + convrate =find_closest_descending (interval, emc1403_conv_time, +ARRAY_SIZE (emc1403_conv_time));return regmap_write (data->regmap,0x04 , convrate); }
Signature · 1 line
2.43.0
[email protected]
AI reviewSashiko has reviewed this patch and found no issues.
Quoted 5 lines
The temperature conversion time table is called "ina3221" but this driver is "emc1403", this looks to be a copy/paste error. Rename the table to match the driver.
Signed-off-by Andrew Davis <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 5 lines · Andrew Davis
The temperature conversion time table is called "ina3221" but this driver is "emc1403", this looks to be a copy/paste error. Rename the table to match the driver.
Signed-off-by Andrew Davis <[email protected]>
Applied.
Thanks,
Guenter