git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Error in nct7802.c

From
ЛАЛатышев Сергей Александрович <latyshevsa@nic-t.ru>
Date
Sep 3, 2025, 12:59 UTC
Message-ID
<9e0ae524-096f-4629-b3bd-5a100f6790ef@nic-t.ru>

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))

Message 1 of 1 in “Error in nct7802.c”
  1. Латышев Сергей АлександровичSep 3, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.