soc/tegra: fuse: Add function to add lookups
authorKartik <kkartik@nvidia.com>
Tue, 17 Oct 2023 05:23:19 +0000 (10:53 +0530)
committerThierry Reding <treding@nvidia.com>
Thu, 1 Feb 2024 14:58:05 +0000 (15:58 +0100)
commit71661c1c8c34d100be03b229dfc7cd7d2db7f62e
tree2480d262e412e6e53f0de25d54f8bd5a2b0c3b8a
parent7b0c505eb3414619feef0bd8acc455858f17c1c6
soc/tegra: fuse: Add function to add lookups

Add helper function tegra_fuse_add_lookups() to register Tegra fuse
nvmem lookups. So, this can be shared between tegra_fuse_init() and
ACPI probe, which is to be introduced later.

Use kmemdup_array to duplicate fuse->soc->lookups.

Signed-off-by: Kartik <kkartik@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/fuse/fuse-tegra.c