eeprom: at24: 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>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
This commit is contained in:
Vadym Kochan 2020-09-16 20:09:31 +03:00 committed by Bartosz Golaszewski
parent 99363d1c26
commit 774b9f4371

View File

@ -713,6 +713,7 @@ static int at24_probe(struct i2c_client *client)
return err;
}
nvmem_config.type = NVMEM_TYPE_EEPROM;
nvmem_config.name = dev_name(dev);
nvmem_config.dev = dev;
nvmem_config.read_only = !writable;