mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
In Linux v6.16, the 'of_node' structure was removed from the 'i2c_board_info' structure and the 'cdi-mgr' driver fails to build. Although it is possible to detect whether the 'i2c_board_info' structure has the 'of_node' structure using conftest, the 'cdi-mgr' driver does not even use this. Therefore, it is simpler to fix this by using memset and strncpy to initialize the 'i2c_board_info' structure and this also aligns the camera 'cdi-mgr' driver with the camera 'isc-mgr' driver that initializes the 'i2c_board_info' structure in this way. JIRA LINQPJ14-60 Change-Id: I1d9df0fb1ccea3d303f256f65d187a131b7352ad Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3374654 (cherry picked from commit 30cad15a2e832ad445003911a76627fb18f91b49) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3461876 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Brad Griffis <bgriffis@nvidia.com>