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:
committed by
Bartosz Golaszewski
parent
99363d1c26
commit
774b9f4371
@@ -713,6 +713,7 @@ static int at24_probe(struct i2c_client *client)
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nvmem_config.type = NVMEM_TYPE_EEPROM;
|
||||||
nvmem_config.name = dev_name(dev);
|
nvmem_config.name = dev_name(dev);
|
||||||
nvmem_config.dev = dev;
|
nvmem_config.dev = dev;
|
||||||
nvmem_config.read_only = !writable;
|
nvmem_config.read_only = !writable;
|
||||||
|
|||||||
Reference in New Issue
Block a user