mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
camera: Use conftest for finding tegra264_io_pad_power_* available
Use conftest for finding whether APIs tegra264_io_pad_power_* are available or not before using it. Bug 4911768 Change-Id: Ic8df4a0109a270d5a486a67900ed7fe4c57b79be Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
This commit is contained in:
committed by
Jon Hunter
parent
09d2e16146
commit
055bd73cbb
@@ -187,6 +187,7 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += spi_driver_struct_remove_return_type_int
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += spi_get_chipselect
|
||||
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 += tegra264_io_pad_power_enable
|
||||
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 += tegra_ivc_use_ivc_ext_driver
|
||||
|
||||
@@ -8143,6 +8143,20 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_TEGRA264_CHIP_ID_PRESENT" "" "types"
|
||||
;;
|
||||
|
||||
tegra264_io_pad_power_enable)
|
||||
#
|
||||
# Determine if tegra264_io_pad_power_enable() exists or not
|
||||
#
|
||||
CODE="
|
||||
#include <soc/tegra/pmc.h>
|
||||
int conftest_tegra264_io_pad_power_enable(void) {
|
||||
tegra264_io_pad_power_enable();
|
||||
}
|
||||
"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_TEGRA264_IO_PAD_POWER_ENABLE_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
tegra_ivc_struct_has_iosys_map)
|
||||
#
|
||||
# Determine if the 'tegra_ivc' structure has the 'map' argument.
|
||||
|
||||
Reference in New Issue
Block a user