nvmem: rockchip-efuse: set type to OTP
authorHeiko Stuebner <heiko.stuebner@cherry.de>
Fri, 5 Jul 2024 07:48:43 +0000 (08:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jul 2024 07:55:04 +0000 (09:55 +0200)
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>
drivers/nvmem/rockchip-efuse.c

index 2b40978ddb18cc4071dd28e95b52f808211ec64e..013e67136f3b9d955301023c2d1931ccd48b8f60 100644 (file)
@@ -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,