Commit 774b9f43 authored by Vadym Kochan's avatar Vadym Kochan Committed by Bartosz Golaszewski

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: default avatarVadym Kochan <vadym.kochan@plvision.eu>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent 99363d1c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment