projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dadca53
)
hwmon: (tmp513) Fix the channel number in tmp51x_is_visible()
author
Biju Das
<biju.das.jz@bp.renesas.com>
Thu, 24 Aug 2023 20:44:54 +0000
(21:44 +0100)
committer
Guenter Roeck
<linux@roeck-us.net>
Fri, 25 Aug 2023 14:43:10 +0000
(07:43 -0700)
The supported channels for this driver are {0..3}. Fix the incorrect
channel in tmp51x_is_visible().
Reported-by: Guenter Roeck <linux@roeck-us.net>
Closes: https://lore.kernel.org/all/
ea0eccc0
-a29f-41e4-9049-
a1a13f8b16f1
@roeck-us.net/
Fixes:
59dfa75e5d82
("hwmon: Add driver for Texas Instruments TMP512/513 sensor chips.")
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link:
https://lore.kernel.org/r/20230824204456.401580-2-biju.das.jz@bp.renesas.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp513.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/tmp513.c
b/drivers/hwmon/tmp513.c
index
7db5d0f
..
8ee6e02
100644
(file)
--- a/
drivers/hwmon/tmp513.c
+++ b/
drivers/hwmon/tmp513.c
@@
-434,7
+434,7
@@
static umode_t tmp51x_is_visible(const void *_data,
switch (type) {
case hwmon_temp:
- if (data->id == tmp512 && channel ==
4
)
+ if (data->id == tmp512 && channel ==
3
)
return 0;
switch (attr) {
case hwmon_temp_input: