mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
conftest: Add test to find if gpiochip_add() present
Add conftest Determine if function gpiochip_find()
present or not.
The function gpiochip_find() is removed from
commit 2654521d774f9 ("gpiolib: remove
gpiochip_find()") in Linux 6.7
Bug 4346767
Change-Id: I5b7c4b87c327ac69c8ff735940d086352665de2f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3031549
(cherry picked from commit 3e87d0a8ea)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3051582
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
cef95180b3
commit
a77844b17d
@@ -127,6 +127,7 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += netif_napi_add_weight
|
|||||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += of_get_named_gpio_flags
|
NV_CONFTEST_FUNCTION_COMPILE_TESTS += of_get_named_gpio_flags
|
||||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += of_gpio_named_count
|
NV_CONFTEST_FUNCTION_COMPILE_TESTS += of_gpio_named_count
|
||||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += gpio_chip_struct_has_of_node_present
|
NV_CONFTEST_FUNCTION_COMPILE_TESTS += gpio_chip_struct_has_of_node_present
|
||||||
|
NV_CONFTEST_FUNCTION_COMPILE_TESTS += gpiochip_find
|
||||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += pde_data
|
NV_CONFTEST_FUNCTION_COMPILE_TESTS += pde_data
|
||||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += pwm_ops_struct_has_owner
|
NV_CONFTEST_FUNCTION_COMPILE_TESTS += pwm_ops_struct_has_owner
|
||||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += pci_disable_pcie_error_reporting
|
NV_CONFTEST_FUNCTION_COMPILE_TESTS += pci_disable_pcie_error_reporting
|
||||||
|
|||||||
@@ -5480,6 +5480,24 @@ compile_test() {
|
|||||||
compile_check_conftest "$CODE" "NV_GPIO_CHIP_STRUCT_HAS_OF_NODE_PRESENT" "" "types"
|
compile_check_conftest "$CODE" "NV_GPIO_CHIP_STRUCT_HAS_OF_NODE_PRESENT" "" "types"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
gpiochip_find)
|
||||||
|
#
|
||||||
|
# Determine if function gpiochip_find() present or not.
|
||||||
|
#
|
||||||
|
# The function gpiochip_find() is removed from commit 2654521d774f9
|
||||||
|
# ("gpiolib: remove gpiochip_find()" in Linux 6.7
|
||||||
|
#
|
||||||
|
CODE="
|
||||||
|
#include <linux/gpio/driver.h>
|
||||||
|
void conftest_gpiochip_find_present(void)
|
||||||
|
{
|
||||||
|
gpiochip_find();
|
||||||
|
}
|
||||||
|
"
|
||||||
|
|
||||||
|
compile_check_conftest "$CODE" "NV_GPIOCHIP_FIND_PRESENT" "" "functions"
|
||||||
|
;;
|
||||||
|
|
||||||
devm_gpio_request_one)
|
devm_gpio_request_one)
|
||||||
#
|
#
|
||||||
# Determine if devm_gpio_request_one() function is present
|
# Determine if devm_gpio_request_one() function is present
|
||||||
|
|||||||
Reference in New Issue
Block a user