mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
conftest: Add test to find of_get_named_gpio_flags()
Add test to find out if of_get_named_gpio_flags() present
or not.
This APIS is removed in commit 40fc56ee608cdb ("gpiolib:
of: remove of_get_gpio[_flags]() and of_get_named_gpio_flags()")
in Linux 6.2.
Bug 4346767
Change-Id: I522097bdeb5fbd5a545b981a1a9b3f6f7ecb2806
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3031546
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
05c4920731
commit
f78f96de71
@@ -5454,6 +5454,27 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_OF_GET_NAME_GPIO_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
of_get_named_gpio_flags)
|
||||
#
|
||||
# Determine if of_get_named_gpio_flags() function is present
|
||||
#
|
||||
# This APIS is removed in commit 40fc56ee608cdb ("gpiolib:
|
||||
# of: remove of_get_gpio[_flags]() and of_get_named_gpio_flags()")
|
||||
# in Linux 6.2.
|
||||
#
|
||||
CODE="
|
||||
#if defined(NV_LINUX_OF_GPIO_H_PRESENT)
|
||||
#include <linux/of_gpio.h>
|
||||
#endif
|
||||
void conftest_of_get_named_gpio_flags(void)
|
||||
{
|
||||
of_get_named_gpio_flags();
|
||||
}
|
||||
"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_OF_GET_NAMED_GPIO_FLAGS_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
devm_gpio_request_one)
|
||||
#
|
||||
# Determine if devm_gpio_request_one() function is present
|
||||
|
||||
Reference in New Issue
Block a user