Skip to content

Commit

Permalink
nvmem: rockchip-efuse: set type to OTP
Browse files Browse the repository at this point in the history
This device currently reports an "Unknown" type in sysfs.
Since it is an eFuse hardware device, set its type to OTP.

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]>
  • Loading branch information
Heiko Stuebner authored and gregkh committed Jul 5, 2024
1 parent 39f9560 commit ba64a04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/nvmem/rockchip-efuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ static int rockchip_rk3399_efuse_read(void *context, unsigned int offset,
static struct nvmem_config econfig = {
.name = "rockchip-efuse",
.add_legacy_fixed_of_cells = true,
.type = NVMEM_TYPE_OTP,
.stride = 1,
.word_size = 1,
.read_only = true,
Expand Down

0 comments on commit ba64a04

Please sign in to comment.