diff options
author | 2019-08-01 14:05:17 +0200 | |
---|---|---|
committer | 2019-08-01 14:05:17 +0200 | |
commit | 3a5ff11be8dc1f5ea4e89158623204672fc588de (patch) | |
tree | 4c43a8350668aedf8fdd3e9bd5f334847db17886 /drivers/misc | |
parent | Linux 5.3-rc2 (diff) | |
parent | eeprom: at24: make spd world-readable again (diff) | |
download | linux-3a5ff11be8dc1f5ea4e89158623204672fc588de.tar.gz linux-3a5ff11be8dc1f5ea4e89158623204672fc588de.tar.bz2 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')
-rw-r--r-- | drivers/misc/eeprom/at24.c | 2 |
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; |