diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2022-11-18 06:39:22 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-11-23 19:44:52 +0100 |
commit | a3816a7d7c097c1da46aad5f5d1e229b607dce04 (patch) | |
tree | 3de56c05c805641e8c9e231c6d3f39a6a32dfcfb /drivers/nvmem/stm32-romem.c | |
parent | d61784e6410f3df2028e6eb91b06ffed37a660e0 (diff) | |
download | linux-a3816a7d7c097c1da46aad5f5d1e229b607dce04.tar.gz linux-a3816a7d7c097c1da46aad5f5d1e229b607dce04.tar.bz2 linux-a3816a7d7c097c1da46aad5f5d1e229b607dce04.zip |
nvmem: stm32: add nvmem type attribute
Inform NVMEM framework of type attribute for stm32-romem as NVMEM_TYPE_OTP
so userspace is able to know how the data is stored in BSEC.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20221118063932.6418-4-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem/stm32-romem.c')
-rw-r--r-- | drivers/nvmem/stm32-romem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvmem/stm32-romem.c b/drivers/nvmem/stm32-romem.c index bb8aa72ba2f9..6de565639d5f 100644 --- a/drivers/nvmem/stm32-romem.c +++ b/drivers/nvmem/stm32-romem.c @@ -160,6 +160,7 @@ static int stm32_romem_probe(struct platform_device *pdev) priv->cfg.dev = dev; priv->cfg.priv = priv; priv->cfg.owner = THIS_MODULE; + priv->cfg.type = NVMEM_TYPE_OTP; priv->lower = 0; |