Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d62a2c

Browse files
vkochan-plvgregkh
authored andcommitted
eeprom: 93xx46: set type id as EEPROM
Set type as NVMEM_TYPE_EEPROM to expose this info viasysfs:$ cat /sys/bus/nvmem/devices/{DEVICE}/typeEEPROMSigned-off-by: Vadym Kochan <vadym.kochan@plvision.eu>Link:https://lore.kernel.org/r/20200916170933.20302-4-vadym.kochan@plvision.euSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent5e180e6 commit1d62a2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎drivers/misc/eeprom/eeprom_93xx46.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ static int eeprom_93xx46_probe(struct spi_device *spi)
455455
edev->pdata=pd;
456456

457457
edev->size=128;
458+
edev->nvmem_config.type=NVMEM_TYPE_EEPROM;
458459
edev->nvmem_config.name=dev_name(&spi->dev);
459460
edev->nvmem_config.dev=&spi->dev;
460461
edev->nvmem_config.read_only=pd->flags&EE_READONLY;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp