]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwmon: (tmp513) Fix the channel number in tmp51x_is_visible()
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 24 Aug 2023 20:44:54 +0000 (21:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:08 +0000 (09:48 +0200)
commit45a8c9e443b151ccb6d4b9ad2278107bdd9a068c
treed5a31cd07e022a65ba263c823e5e602821df9eeb
parent0a01f59e3316eff9e5d71ee7ac4989622dadb2d9
hwmon: (tmp513) Fix the channel number in tmp51x_is_visible()

[ Upstream commit d103337e38e7e64c3d915029e947b1cb0b512737 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/tmp513.c