linux-stable/drivers/nvmem
Jean Delvare b0fc60701d nvmem: Use the same permissions for eeprom as for nvmem
commit e70d8b2873 upstream.

The compatibility "eeprom" attribute is currently root-only no
matter what the configuration says. The "nvmem" attribute does
respect the setting of the root_only configuration bit, so do the
same for "eeprom".

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Fixes: b6c217ab9b ("nvmem: Add backwards compatibility support for older EEPROM drivers.")
Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20190728184255.563332e6@endymion
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-09-19 09:08:08 +02:00
..
bcm-ocotp.c nvmem: correct Broadcom OTP controller driver writes 2017-06-09 12:08:27 +02:00
core.c nvmem: Use the same permissions for eeprom as for nvmem 2019-09-19 09:08:08 +02:00
imx-iim.c nvmem: Add driver for the i.MX IIM 2017-04-08 17:51:48 +02:00
imx-ocotp.c nvmem: imx-ocotp: add write support 2017-04-08 17:51:48 +02:00
Kconfig nvmem: Add driver for the i.MX IIM 2017-04-08 17:51:48 +02:00
lpc18xx_eeprom.c nvmem: lpc18xx-eeprom: explicitly request exclusive reset control 2017-08-28 17:33:22 +02:00
lpc18xx_otp.c nvmem: add NXP LPC18xx OTP driver 2016-11-10 15:34:55 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
meson-efuse.c firmware: meson-sm: Check for buffer output size 2017-03-23 12:22:32 -07:00
mtk-efuse.c
mxs-ocotp.c
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: amend compatible rk322x-efuse to rk3228-efuse 2017-07-17 16:15:57 +02:00
sunxi_sid.c nvmem: sunxi-sid: add support for H3's SID controller 2017-04-08 17:51:48 +02:00
vf610-ocotp.c