mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-22 09:12:05 +03:00
In Linux v6.2, the 'struct class.devnode()' function was updated to take a 'const struct device *' instead of a 'struct device *'. A test has been added to the conftest script to check for this and so instead of relying on kernel version, use the definition generated by conftest to select the appropriate function to use. This is beneficial for working with 3rd party Linux kernels that may have back-ported upstream changes into their kernel and so the kernel version checks do not work. Bug 4119327 Change-Id: I751b7401adee7b337192e255253b974cbd803642 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2991966 Reviewed-by: Vedashree Vidwans <vvidwans@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>