summaryrefslogtreecommitdiffstats
path: root/drivers/nvmem
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko.stuebner@cherry.de>2024-07-05 09:48:43 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-07-05 09:55:04 +0200
commitba64a04474d2989f397982c48e405cfd785e2dd5 (patch)
tree9b365155cbee319f063527c99dfc56abd788b86c /drivers/nvmem
parentnvmem: rockchip-otp: Set type to OTP (diff)
downloadlinux-ba64a04474d2989f397982c48e405cfd785e2dd5.tar.xz
linux-ba64a04474d2989f397982c48e405cfd785e2dd5.zip
nvmem: rockchip-efuse: set type to OTP
This device currently reports an "Unknown" type in sysfs. Since it is an eFuse hardware device, set its type to OTP. Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20240705074852.423202-7-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem')
-rw-r--r--drivers/nvmem/rockchip-efuse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvmem/rockchip-efuse.c b/drivers/nvmem/rockchip-efuse.c
index 2b40978ddb18..013e67136f3b 100644
--- a/drivers/nvmem/rockchip-efuse.c
+++ b/drivers/nvmem/rockchip-efuse.c
@@ -206,6 +206,7 @@ static int rockchip_rk3399_efuse_read(void *context, unsigned int offset,
static struct nvmem_config econfig = {
.name = "rockchip-efuse",
.add_legacy_fixed_of_cells = true,
+ .type = NVMEM_TYPE_OTP,
.stride = 1,
.word_size = 1,
.read_only = true,