Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Heiko Stuebner and committed by
Greg Kroah-Hartman
ba64a044 39f95600

+1
+1
drivers/nvmem/rockchip-efuse.c
··· 206 206 static struct nvmem_config econfig = { 207 207 .name = "rockchip-efuse", 208 208 .add_legacy_fixed_of_cells = true, 209 + .type = NVMEM_TYPE_OTP, 209 210 .stride = 1, 210 211 .word_size = 1, 211 212 .read_only = true,