Skip to content

Commit 2933e79

Browse files
Heiko Stuebnergregkh
authored andcommitted
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: 2cc3b37 ("nvmem: add explicit config option to read old syntax fixed OF cells") Signed-off-by: Heiko Stuebner <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5fecb93 commit 2933e79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/nvmem/rockchip-otp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ static int rockchip_otp_read(void *context, unsigned int offset,
255255
static struct nvmem_config otp_config = {
256256
.name = "rockchip-otp",
257257
.owner = THIS_MODULE,
258+
.add_legacy_fixed_of_cells = true,
258259
.read_only = true,
259260
.stride = 1,
260261
.word_size = 1,

0 commit comments

Comments
 (0)