mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
thermal: Fix build for Linux v6.10
In Linux v6.10, commit b1ae92dcfa8e ("thermal: core: Make struct
thermal_zone_device definition internal") made the structure
'thermal_zone_device' internal and so the 'devdata' member is no longer
directly accessible. The function thermal_zone_device_priv() was added
in Linux v6.4 for retrieving the 'devdata' and so update the various
thermal drivers to use this function if present.
Bug 4593750
Change-Id: Ic53de9bbd5459c99a3ac26759aa8a966cd775fe5
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3123221
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
32ed59d81b
commit
d95c0d0add
@@ -160,6 +160,7 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += tc_taprio_qopt_offload_struct_has_cmd
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra264_chip_id
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_dev_iommu_get_stream_id
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_ivc_struct_has_iosys_map
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += thermal_zone_device_priv
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tty_operations_struct_send_xchar_has_u8_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tty_operations_struct_write_has_u8_ptr_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tty_operations_struct_set_termios_has_const_ktermios_arg
|
||||
|
||||
@@ -7665,6 +7665,23 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_TEGRA_IVC_STRUCT_HAS_IOSYS_MAP" "" "types"
|
||||
;;
|
||||
|
||||
thermal_zone_device_priv)
|
||||
#
|
||||
# Determine if the function thermal_zone_device_priv() is present.
|
||||
#
|
||||
# Commit a6ff3c002146 ("thermal/core: Add a thermal zone 'devdata'
|
||||
# accessor") added function thermal_zone_device_priv() in Linux
|
||||
# v6.4.
|
||||
#
|
||||
CODE="
|
||||
#include <linux/thermal.h>
|
||||
void conftest_thermal_zone_device_priv(void) {
|
||||
thermal_zone_device_priv();
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_THERMAL_ZONE_DEVICE_PRIV_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
tegra_dev_iommu_get_stream_id)
|
||||
#
|
||||
# Determine if the function tegra_dev_iommu_get_stream_id is present.
|
||||
|
||||
Reference in New Issue
Block a user