]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (emc2305) fix unable to probe emc2301/2/3
authorXingjiang Qiao <nanpuyue@gmail.com>
Tue, 6 Dec 2022 05:53:30 +0000 (13:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:23 +0000 (13:32 +0100)
commit4eb8d8994d0d17ff55a39740b3e262c7d9f08f91
tree786014ccfd7a031d01e0b78556b31da380a230c9
parentd3351507227443ec51572ac3c4800c350890cb75
hwmon: (emc2305) fix unable to probe emc2301/2/3

[ Upstream commit 53fc079cb2d34f2d52059c80604861e6fdb60e15 ]

The definitions of 'EMC2305_REG_PRODUCT_ID' and 'EMC2305_REG_DEVICE' are
both '0xfd', they actually return the same value, but the values returned
by emc2301/2/3/5 are different, so probe emc2301/2/3 will fail, This patch
fixes that.

Signed-off-by: Xingjiang Qiao <nanpuyue@gmail.com>
Link: https://lore.kernel.org/r/20221206055331.170459-1-nanpuyue@gmail.com
Fixes: 69ae061f605d4 ("hwmon: (emc2305) add support for EMC2301/2/3/5 RPM-based PWM Fan Speed Controller.")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/emc2305.c