FIX: Use the same enum for chipset NCT6686 and NCT6686D

This commit is contained in:
fboltz 2023-01-22 11:27:11 +01:00
parent c2063468a7
commit 3e349808fb

View file

@ -1102,10 +1102,8 @@ static int __init nct6687_find(int sioaddr, struct nct6687_sio_data *sio_data)
if (val == SIO_NCT6683D_ID) {
sio_data->kind = nct6683;
} else if (val == SIO_NCT6686_ID) {
} else if (val == SIO_NCT6686_ID || val == SIO_NCT6686D_ID) {
sio_data->kind = nct6686;
} else if (val == SIO_NCT6686D_ID) {
sio_data->kind = nct6686d;
} else if (val == SIO_NCT6687_ID || val == SIO_NCT6687D_ID || force)
{
sio_data->kind = nct6687;