nvmem: Use name from struct nvmem_config for cdev
Original name, 'nvmemN', doesn't really give any hint about which
physical HW it may represent, so change the code to either pick up an
DT alias or use the name passed via 'struct nvmem_config'.

Cc: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Tested-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 137e8e3 commit 611a0d0b73d55b74a43c573ef80a843c70d2baad
@Andrey Smirnov Andrey Smirnov authored on 29 May 2018
Sascha Hauer committed on 31 May 2018
Showing 1 changed file
View
drivers/nvmem/core.c