linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nct7802.c bug : in4_input index is not 17 but 16
@ 2019-07-26  9:16 Gilles Buloz
  0 siblings, 0 replies; only message in thread
From: Gilles Buloz @ 2019-07-26  9:16 UTC (permalink / raw)
  To: linux; +Cc: linux-hwmon

Hi,

Bug description :
The "in4" related entries in structure nct7802_in_attrs start at index 16, not 17 (the comment is wrong here)
Also nct7802_in_is_visible() should use 16 instead of 17 for the same reason (two occurences)

Impact of this bug :
- when RTD3_MD=11 (VSEN3 present), everything is as expected (no bug)
- but if we have RTD3_MD!=11 (no VSEN3), we unexpectedly have a in4_input file under /sys and the command "sensors" displays the 
in4_input. But as expected, we have no in4_min, in4_max, in4_alarm, in4_beep.

Best regards

Gilles BULOZ
Senior software(/hardware) engineer | R&D
Kontron Modular Computers S.A.S.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-26  9:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-26  9:16 nct7802.c bug : in4_input index is not 17 but 16 Gilles Buloz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).