diff options
author | Heiko Stuebner <heiko.stuebner@cherry.de> | 2024-07-05 08:48:41 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-07-05 09:55:04 +0200 |
commit | 2933e79db3c00a8cdc56f6bb050a857fec1875ad (patch) | |
tree | e9272f7014fbcd11edcd4ac8d480795b46b409be /drivers/nvmem/rockchip-otp.c | |
parent | 5fecb932607d83d37a703c731268e9d9051457f5 (diff) | |
download | lwn-2933e79db3c00a8cdc56f6bb050a857fec1875ad.tar.gz lwn-2933e79db3c00a8cdc56f6bb050a857fec1875ad.zip |
nvmem: rockchip-otp: set add_legacy_fixed_of_cells config option
The Rockchip OTP describes its layout via devicetree subnodes,
so set the appropriate property.
Fixes: 2cc3b37f5b6d ("nvmem: add explicit config option to read old syntax fixed OF cells")
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-5-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem/rockchip-otp.c')
-rw-r--r-- | drivers/nvmem/rockchip-otp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvmem/rockchip-otp.c b/drivers/nvmem/rockchip-otp.c index cb9aa5428350..7107d68a2f8c 100644 --- a/drivers/nvmem/rockchip-otp.c +++ b/drivers/nvmem/rockchip-otp.c @@ -255,6 +255,7 @@ static int rockchip_otp_read(void *context, unsigned int offset, static struct nvmem_config otp_config = { .name = "rockchip-otp", .owner = THIS_MODULE, + .add_legacy_fixed_of_cells = true, .read_only = true, .stride = 1, .word_size = 1, |