projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99363d1
)
eeprom: at24: set type id as EEPROM
author
Vadym Kochan
<vadym.kochan@plvision.eu>
Wed, 16 Sep 2020 17:09:31 +0000
(20:09 +0300)
committer
Bartosz Golaszewski
<bgolaszewski@baylibre.com>
Thu, 17 Sep 2020 08:05:20 +0000
(10:05 +0200)
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>
drivers/misc/eeprom/at24.c
patch
|
blob
|
history
diff --git
a/drivers/misc/eeprom/at24.c
b/drivers/misc/eeprom/at24.c
index
8f5de5f
..
00c8ac0
100644
(file)
--- a/
drivers/misc/eeprom/at24.c
+++ b/
drivers/misc/eeprom/at24.c
@@
-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;