nvmem: add type attribute
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 30 Nov 2018 11:53:20 +0000 (11:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Dec 2018 14:45:45 +0000 (15:45 +0100)
commit16688453661b6d5159be558a1f8c1f54463a420f
tree39750dfb13626ed1ac89b3efd43815a2d8bd01f0
parentecd589d8f5661dd3a9545079a29b678cd9e3ecf3
nvmem: add type attribute

Add a type attribute so userspace is able to know how the data is stored as
this can help taking the correct decision when selecting which device to
use. This will also help program display the proper warnings when burning
fuses for example.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-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