nvmem: Add flag to export NVMEM to root only
authorAndrew Lunn <andrew@lunn.ch>
Fri, 26 Feb 2016 19:59:18 +0000 (20:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2016 00:55:48 +0000 (16:55 -0800)
commit811b0d6538b9f26f3eb0f90fe4e6118f2480ec6f
tree3f4a38c17e58e4011702fd5cbc73c22b22dbd488
parent1bb850a1b7f68b66361e658e334f9fdf8231f17d
nvmem: Add flag to export NVMEM to root only

Legacy AT24, AT25 EEPROMs are exported in sys so that only root can
read the contents. The EEPROMs may contain sensitive information. Add
a flag so the provide can indicate that NVMEM should also restrict
access to root only.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/core.c
include/linux/nvmem-provider.h