nvmem: rockchip-efuse: set type to OTP
From: Heiko Stuebner <heiko.stuebner@...> Date: Tue, 7 May 2024 14:14:02 +0200
Commit-Message
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@...>
Patch-Comment
drivers/nvmem/rockchip-efuse.c | 1 + 1 file changed, 1 insertion(+)
Statistics
- 1 lines added
- 0 lines removed
Changes
------------------------ drivers/nvmem/rockchip-efuse.c ------------------------
index 2b40978ddb18c..013e67136f3b9 100644
@@ -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,