diff mbox series

[1/2] nvmem: imx-ocotp: Set type to OTP

Message ID 20190709183016.4789-1-tpiepho@impinj.com (mailing list archive)
State New, archived
Headers show
Series [1/2] nvmem: imx-ocotp: Set type to OTP | expand

Commit Message

Trent Piepho July 9, 2019, 6:30 p.m. UTC
The nvmem subsystem supports a type, like battery backed nvram, eeprom,
or otp.  This device is otp.

Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Trent Piepho <tpiepho@impinj.com>
---
 drivers/nvmem/imx-ocotp.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c
index 42d4451e7d67..d45e71e9b73a 100644
--- a/drivers/nvmem/imx-ocotp.c
+++ b/drivers/nvmem/imx-ocotp.c
@@ -414,6 +414,7 @@  static int imx_ocotp_write(void *context, unsigned int offset, void *val,
 static struct nvmem_config imx_ocotp_nvmem_config = {
 	.name = "imx-ocotp",
 	.read_only = false,
+	.type = NVMEM_TYPE_OTP,
 	.word_size = 4,
 	.stride = 4,
 	.reg_read = imx_ocotp_read,