Skip to content

Commit 2471787

Browse files
hthierygregkh
authored andcommitted
misc: microchip: pci1xxxx: add support for NVMEM_DEVID_AUTO for OTP device
By using NVMEM_DEVID_AUTO we support more than 1 device and automatically enumerate. Fixes: 0969001 ("misc: microchip: pci1xxxx: Add support to read and write into PCI1XXXX OTP 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 3c2d73d commit 2471787

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
@@ -384,6 +384,7 @@ static int pci1xxxx_otp_eeprom_probe(struct auxiliary_device *aux_dev,
384384

385385
priv->nvmem_config_otp.type = NVMEM_TYPE_OTP;
386386
priv->nvmem_config_otp.name = OTP_NAME;
387+
priv->nvmem_config_otp.id = NVMEM_DEVID_AUTO;
387388
priv->nvmem_config_otp.dev = &aux_dev->dev;
388389
priv->nvmem_config_otp.owner = THIS_MODULE;
389390
priv->nvmem_config_otp.reg_read = pci1xxxx_otp_read;

0 commit comments

Comments
 (0)