]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (adt7475) Fix default duty on fan is disabled
authorWayne Tung <chineweff@gmail.com>
Mon, 1 Jul 2024 07:32:52 +0000 (15:32 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 1 Jul 2024 22:45:57 +0000 (15:45 -0700)
commit39b24cced70fdc336dbc0070f8b3bde61d8513a8
tree1f08b5c51cd0da0db65e4bb6489473fc45d1185d
parentb3e992f69c239b0eb99c408c1ca9cd4253d2e7ad
hwmon: (adt7475) Fix default duty on fan is disabled

According to the comments on fan is disabled, we change to manual mode
and set the duty cycle to 0.
For setting the duty cycle part, the register is wrong. Fix it.

Fixes: 1c301fc5394f ("hwmon: Add a driver for the ADT7475 hardware monitoring chip")
Signed-off-by: Wayne Tung <chineweff@gmail.com>
Link: https://lore.kernel.org/r/20240701073252.317397-1-chineweff@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adt7475.c