nvmem: rockchip-otp: Set type to OTP

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>
This commit is contained in:
Heiko Stuebner 2024-07-05 08:48:42 +01:00 committed by Greg Kroah-Hartman
parent 2933e79db3
commit 39f95600d8

View File

@ -256,6 +256,7 @@ static struct nvmem_config otp_config = {
.name = "rockchip-otp", .name = "rockchip-otp",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.add_legacy_fixed_of_cells = true, .add_legacy_fixed_of_cells = true,
.type = NVMEM_TYPE_OTP,
.read_only = true, .read_only = true,
.stride = 1, .stride = 1,
.word_size = 1, .word_size = 1,