From 3e349808fbf05c1428fdfaf6abf8c121a145660a Mon Sep 17 00:00:00 2001 From: fboltz Date: Sun, 22 Jan 2023 11:27:11 +0100 Subject: [PATCH] FIX: Use the same enum for chipset NCT6686 and NCT6686D --- nct6687.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nct6687.c b/nct6687.c index 7de5a4f..fed2c86 100644 --- a/nct6687.c +++ b/nct6687.c @@ -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;