Skip to content

Commit 3a5ff11

Browse files
author
Wolfram Sang
committed
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
2 parents 609488b + 25e5ef3 commit 3a5ff11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/misc/eeprom/at24.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ static int at24_probe(struct i2c_client *client)
685685
nvmem_config.name = dev_name(dev);
686686
nvmem_config.dev = dev;
687687
nvmem_config.read_only = !writable;
688-
nvmem_config.root_only = true;
688+
nvmem_config.root_only = !(flags & AT24_FLAG_IRUGO);
689689
nvmem_config.owner = THIS_MODULE;
690690
nvmem_config.compat = true;
691691
nvmem_config.base_dev = dev;

0 commit comments

Comments
 (0)