nvmem: rockchip-otp: set add_legacy_fixed_of_cells config

A patch from »Small changes for Rockchip NVMEM drivers« in state Mainline for linux-kernel

From: Heiko Stuebner <heiko.stuebner@...> Date: Tue, 7 May 2024 13:54:07 +0200

Commit-Message

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@...>

Patch-Comment

drivers/nvmem/rockchip-otp.c | 1 + 1 file changed, 1 insertion(+)

Statistics

  • 1 lines added
  • 0 lines removed

Changes

------------------------- drivers/nvmem/rockchip-otp.c -------------------------
index cb9aa5428350a..7107d68a2f8c7 100644
@@ -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,
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...