Error in nct7802.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
An error was found in the code of the drivers/hwmon/nct7802.c file.
A macro mismatch on line 49
#define SMARTFI_EN_SHIFT(x) ((x) %2 *4)
of the chip documentation dated 02.2020 in Table No. 7.2.95 "Temperature to Fan mapping Relationships Register".

I suggest this simple variant:
#define SMARTFI_EN_SHIFT(x) (((x)==0)?0:(((x)==1)?5:2))




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux