]> www.infradead.org Git - users/jedix/linux-maple.git/commit
eeprom: ee1004: Add nvmem support
authorArmin Wolf <W_Armin@gmx.de>
Tue, 25 Jun 2024 06:34:59 +0000 (08:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jul 2024 10:02:56 +0000 (12:02 +0200)
commit79d0df36b54179ac2192e56ad7fdb29c952f35e2
tree1a77645361c2bb6113e6aa56b41e88a78ecae7b9
parent55d57ef6fa97ca631d393cccc641cbe1b16cc382
eeprom: ee1004: Add nvmem support

Currently the driver does not register a nvmem provider, which means
that userspace programs cannot access the ee1004 EEPROM through the
standard nvmem sysfs API.
Fix this by replacing the custom sysfs attribute with a standard nvmem
interface, which also takes care of backwards compatibility.

Tested on a Dell Inspiron 3505.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20240625063459.429953-2-W_Armin@gmx.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/Kconfig
drivers/misc/eeprom/ee1004.c