Linux Hardware Monitor development
 help / color / mirror / Atom feed
* [PATCH] hwmon: (emc1403) Fix table name to match driver
@ 2026-11-11 18:11 Andrew Davis
  2026-11-11 18:29 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Davis @ 2026-11-11 18:11 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: linux-hwmon, linux-kernel, 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 <afd@ti.com>
---
 drivers/hwmon/emc1403.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/hwmon/emc1403.c b/drivers/hwmon/emc1403.c
index 13ecc7372d9fe..97508a2ee852d 100644
--- a/drivers/hwmon/emc1403.c
+++ b/drivers/hwmon/emc1403.c
@@ -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);
 }
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] hwmon: (emc1403) Fix table name to match driver
  2026-11-11 18:11 [PATCH] hwmon: (emc1403) Fix table name to match driver Andrew Davis
@ 2026-11-11 18:29 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-11 18:29 UTC (permalink / raw)
  To: Andrew Davis; +Cc: linux-hwmon

> 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 <afd@ti.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261111181154.445315-1-afd@ti.com?part=1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-11 18:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-11 18:11 [PATCH] hwmon: (emc1403) Fix table name to match driver Andrew Davis
2026-11-11 18:29 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox