From: Andrew Davis <afd@ti.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: <linux-hwmon@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
"Andrew Davis" <afd@ti.com>
Subject: [PATCH] hwmon: (emc1403) Fix table name to match driver
Date: Wed, 11 Nov 2026 12:11:54 -0600 [thread overview]
Message-ID: <20261111181154.445315-1-afd@ti.com> (raw)
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
next reply other threads:[~2026-11-11 18:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 18:11 Andrew Davis [this message]
2026-11-11 18:29 ` [PATCH] hwmon: (emc1403) Fix table name to match driver sashiko-bot
2026-11-12 19:51 ` Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261111181154.445315-1-afd@ti.com \
--to=afd@ti.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.