Merge pull request #60 from Fred78290/issue#59

FIX: Use the same enum for chipset NCT6686 and NCT6686D
This commit is contained in:
Frederic BOLTZ 2023-01-22 11:28:43 +01:00 committed by GitHub
commit 6ea533e08c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;