android_kernel_asus_sm8350/drivers/nvmem
Aban Bedel 5253193d54 nvmem: core: Allow allocating several anonymous nvmem devices
Currently the nvmem core expect the config to provide a name and ID
that are then used to create the device name. When no device name is
given 'nvmem' is used. However if there is several such anonymous
devices they all get named 'nvmem0', which doesn't work.

To fix this problem use the ID from the config only when the config
also provides a name. When no name is provided take the uinque ID of
the nvmem device instead.

Signed-off-by: Aban Bedel <albeu@free.fr>
Reviewed-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-04-08 17:51:48 +02:00
..
bcm-ocotp.c nvmem: Add the Broadcom OTP controller driver 2016-11-10 15:34:56 +01:00
core.c nvmem: core: Allow allocating several anonymous nvmem devices 2017-04-08 17:51:48 +02:00
imx-ocotp.c nvmem: octop: Add support for imx6ul 2017-01-25 11:49:39 +01:00
Kconfig nvmem: Add the Broadcom OTP controller driver 2016-11-10 15:34:56 +01:00
lpc18xx_eeprom.c nvmem: lpc18xx-eeprom: remove nvmem regmap dependency 2016-05-01 14:01:13 -07:00
lpc18xx_otp.c nvmem: add NXP LPC18xx OTP driver 2016-11-10 15:34:55 +01:00
Makefile nvmem: Add the Broadcom OTP controller driver 2016-11-10 15:34:56 +01:00
meson-efuse.c nvmem: amlogic: Add Amlogic Meson EFUSE driver 2016-09-01 14:24:21 -07:00
mtk-efuse.c nvmem: mtk-efuse: remove nvmem regmap dependency 2016-06-25 07:42:55 -07:00
mxs-ocotp.c nvmem: mxs-ocotp: remove nvmem regmap dependency 2016-06-25 07:42:55 -07:00
qfprom.c nvmem: qfprom: Allow single byte accesses for read/write 2017-01-04 18:22:47 +01:00
rockchip-efuse.c nvmem: rockchip-efuse: add rk3399-efuse support 2016-09-02 17:22:51 +02:00
sunxi_sid.c nvmem: sunxi-sid: remove nvmem regmap dependency 2016-05-01 14:01:00 -07:00
vf610-ocotp.c nvmem: vif610-ocotp: remove nvmem regmap dependency 2016-05-01 14:01:00 -07:00