mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
eeprom: 93xx46: set type id as EEPROM
Set type as NVMEM_TYPE_EEPROM to expose this info via sysfs: $ cat /sys/bus/nvmem/devices/{DEVICE}/type EEPROM Signed-off-by: Vadym Kochan <vadym.kochan@plvision.eu> Link: https://lore.kernel.org/r/20200916170933.20302-4-vadym.kochan@plvision.eu Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5e180e6f6a
commit
1d62a2cedf
1 changed files with 1 additions and 0 deletions
|
@ -455,6 +455,7 @@ static int eeprom_93xx46_probe(struct spi_device *spi)
|
|||
edev->pdata = pd;
|
||||
|
||||
edev->size = 128;
|
||||
edev->nvmem_config.type = NVMEM_TYPE_EEPROM;
|
||||
edev->nvmem_config.name = dev_name(&spi->dev);
|
||||
edev->nvmem_config.dev = &spi->dev;
|
||||
edev->nvmem_config.read_only = pd->flags & EE_READONLY;
|
||||
|
|
Loading…
Reference in a new issue