{"thread":{"id":"64081","subject":"Error in nct7802.c","startedAt":"2025-09-03T13:08:52Z","lastAt":"2025-09-03T13:08:52Z","messageCount":1,"participants":["Латышев Сергей Александрович"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"525428","messageId":"9e0ae524-096f-4629-b3bd-5a100f6790ef@nic-t.ru","threadId":"64081","inReplyTo":null,"subject":"Error in nct7802.c","fromName":"Латышев Сергей Александрович","fromEmail":"latyshevsa@nic-t.ru","sentAt":"2025-09-03T12:59:33Z","receivedAt":"2025-09-03T13:08:52Z","isPatch":false,"sender":{"key":"latyshevsa@nic-t.ru","avatar":null},"body":"Hello,\nAn error was found in the code of the drivers/hwmon/nct7802.c file.\nA macro mismatch on line 49\n#define SMARTFI_EN_SHIFT(x) ((x) %2 *4)\nof the chip documentation dated 02.2020 in Table No. 7.2.95 \"Temperature \nto Fan mapping Relationships Register\".\n\nI suggest this simple variant:\n#define SMARTFI_EN_SHIFT(x) (((x)==0)?0:(((x)==1)?5:2))\n"}]}