]> git.baikalelectronics.ru Git - kernel.git/commit
misc: eeprom: at24: fix NVMEM name with custom AT24 device name
authorDiego Santa Cruz <Diego.SantaCruz@spinetix.com>
Thu, 3 Dec 2020 21:47:03 +0000 (22:47 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 4 Dec 2020 09:46:36 +0000 (10:46 +0100)
commit2dd5002a0278467d2dd56f26b3b59d7d8f8c7ab6
tree0d6633fd9eb367d34beba515f61f50283d910c4d
parent68ed2672b8fdb9454c449f573990714135c93adc
misc: eeprom: at24: fix NVMEM name with custom AT24 device name

When the "label" property is set on the AT24 EEPROM the NVMEM devid is
set to NVMEM_DEVID_NONE, but it is not effective since there is a
leftover line setting it back to NVMEM_DEVID_AUTO a few lines after.

Fixes: 57586c252f60 ("eeprom: at24: Support custom device names for AT24 EEPROMs")
Signed-off-by: Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/misc/eeprom/at24.c