nvmem: rockchip-otp: Set type to OTP
authorHeiko Stuebner <heiko.stuebner@cherry.de>
Fri, 5 Jul 2024 07:48:42 +0000 (08:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jul 2024 07:55:04 +0000 (09:55 +0200)
The Rockchip OTP is obviously an OTP memory, so document this fact.

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-6-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/rockchip-otp.c

index 7107d68a2f8c75c1bd54b9da08f6fb25eb4cca0f..ebc3f0b24166bcd962f3a6d3c64d7acd5d1d4b69 100644 (file)
@@ -256,6 +256,7 @@ static struct nvmem_config otp_config = {
        .name = "rockchip-otp",
        .owner = THIS_MODULE,
        .add_legacy_fixed_of_cells = true,
+       .type = NVMEM_TYPE_OTP,
        .read_only = true,
        .stride = 1,
        .word_size = 1,