diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2019-08-01 14:05:17 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2019-08-01 14:05:17 +0200 |
commit | 3a5ff11be8dc1f5ea4e89158623204672fc588de (patch) | |
tree | 4c43a8350668aedf8fdd3e9bd5f334847db17886 /drivers/misc/eeprom | |
parent | 609488bc979f99f805f34e9a32c1e3b71179d10b (diff) | |
parent | 25e5ef302c24a6fead369c0cfe88c073d7b97ca8 (diff) |
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.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; |