nvmem: add type attribute
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 30 Nov 2018 11:53:20 +0000 (11:53 +0000)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:24 +0000 (00:08 +0100)
commit47bf88399298f59b7c5d7f0588021758c9f024a5
tree1e9a9822aeec9ba554dadd4260daae49520c3b24
parent1c7c832928e7bc1d7247bc1c4ff202ad59ed697a
nvmem: add type attribute

commit 16688453661b6d5159be558a1f8c1f54463a420f upstream.

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