Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (emc1403) Add support for EMC1442

Add support for EMC1442 which is compatible with EMC1402.

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
Reviewed-by: Patrick Williams <patrick@stwcx.xyz>
Link: https://lore.kernel.org/r/20231102090808.427351-1-Delphine_CC_Chiu@wiwynn.com
[groeck: compatible with EMC1402, not EMC1403]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Delphine CC Chiu and committed by
Guenter Roeck
9350163a 34c76a51

+5 -1
+5 -1
drivers/hwmon/emc1403.c
··· 346 346 case 0x27: 347 347 strscpy(info->type, "emc1424", I2C_NAME_SIZE); 348 348 break; 349 + case 0x60: 350 + strscpy(info->type, "emc1442", I2C_NAME_SIZE); 351 + break; 349 352 default: 350 353 return -ENODEV; 351 354 } ··· 433 430 } 434 431 435 432 static const unsigned short emc1403_address_list[] = { 436 - 0x18, 0x1c, 0x29, 0x4c, 0x4d, 0x5c, I2C_CLIENT_END 433 + 0x18, 0x1c, 0x29, 0x3c, 0x4c, 0x4d, 0x5c, I2C_CLIENT_END 437 434 }; 438 435 439 436 /* Last digit of chip name indicates number of channels */ ··· 447 444 { "emc1422", emc1402 }, 448 445 { "emc1423", emc1403 }, 449 446 { "emc1424", emc1404 }, 447 + { "emc1442", emc1402 }, 450 448 { } 451 449 }; 452 450 MODULE_DEVICE_TABLE(i2c, emc1403_idtable);