summaryrefslogtreecommitdiffstats
path: root/drivers/misc/eeprom
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2019-08-01 14:05:17 +0200
committerWolfram Sang <wsa@the-dreams.de>2019-08-01 14:05:17 +0200
commit3a5ff11be8dc1f5ea4e89158623204672fc588de (patch)
tree4c43a8350668aedf8fdd3e9bd5f334847db17886 /drivers/misc/eeprom
parentLinux 5.3-rc2 (diff)
parenteeprom: at24: make spd world-readable again (diff)
downloadlinux-3a5ff11be8dc1f5ea4e89158623204672fc588de.tar.xz
linux-3a5ff11be8dc1f5ea4e89158623204672fc588de.zip
Merge tag 'at24-v5.3-rc3-fixes-for-wolfram' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux into i2c/for-current
at24 fixes for v5.3-rc3 - make spd eeproms world-readable again
Diffstat (limited to 'drivers/misc/eeprom')
-rw-r--r--drivers/misc/eeprom/at24.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c
index 35bf2477693d..518945b2f737 100644
--- a/drivers/misc/eeprom/at24.c
+++ b/drivers/misc/eeprom/at24.c
@@ -685,7 +685,7 @@ static int at24_probe(struct i2c_client *client)
nvmem_config.name = dev_name(dev);
nvmem_config.dev = dev;
nvmem_config.read_only = !writable;
- nvmem_config.root_only = true;
+ nvmem_config.root_only = !(flags & AT24_FLAG_IRUGO);
nvmem_config.owner = THIS_MODULE;
nvmem_config.compat = true;
nvmem_config.base_dev = dev;