Skip to content

Commit 3c2d73d

Browse files
hthierygregkh
authored andcommitted
misc: microchip: pci1xxxx: add support for NVMEM_DEVID_AUTO for EEPROM device
By using NVMEM_DEVID_AUTO we support more than 1 device and automatically enumerate. Fixes: 9ab5465 ("misc: microchip: pci1xxxx: Add support to read and write into PCI1XXXX EEPROM via NVMEM sysfs") Cc: [email protected] Signed-off-by: Heiko Thiery <[email protected]> Reviewed-by: Michael Walle <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 02ac3a9 commit 3c2d73d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_otpe2p.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ static int pci1xxxx_otp_eeprom_probe(struct auxiliary_device *aux_dev,
364364
if (is_eeprom_responsive(priv)) {
365365
priv->nvmem_config_eeprom.type = NVMEM_TYPE_EEPROM;
366366
priv->nvmem_config_eeprom.name = EEPROM_NAME;
367+
priv->nvmem_config_eeprom.id = NVMEM_DEVID_AUTO;
367368
priv->nvmem_config_eeprom.dev = &aux_dev->dev;
368369
priv->nvmem_config_eeprom.owner = THIS_MODULE;
369370
priv->nvmem_config_eeprom.reg_read = pci1xxxx_eeprom_read;

0 commit comments

Comments
 (0)