Commit ab04c731 authored by Biju Das's avatar Biju Das Committed by Greg Kroah-Hartman
Browse files

hwmon: (tmp513) Fix the channel number in tmp51x_is_visible()



[ Upstream commit d103337e ]

The supported channels for this driver are {0..3}. Fix the incorrect
channel in tmp51x_is_visible().

Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
Closes: https://lore.kernel.org/all/ea0eccc0-a29f-41e4-9049-a1a13f8b16f1@roeck-us.net/


Fixes: 59dfa75e ("hwmon: Add driver for Texas Instruments TMP512/513 sensor chips.")
Signed-off-by: default avatarBiju 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: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent db7a3531
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment