Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 60a96a1

Browse files
hthierygregkh
authored andcommitted
misc: microchip: pci1xxxx: add support for NVMEM_DEVID_AUTO for EEPROM device
commit 3c2d73d upstream. 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: stable@vger.kernel.org Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com> Reviewed-by: Michael Walle <mwalle@kernel.org> Link: https://lore.kernel.org/r/20241007071120.9522-1-heiko.thiery@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a690a9e commit 60a96a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_otpe2p.c

+1
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)