mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
{isc,cdi}_mgr: Use gpiod_count() for getting number of GPIO
The API gpiod_count() returns the number of the GPIO in given
property. This API is supported from long and continue to
support.
Use this API instead of of_gpio_named_count() which is deprecated
from Linux 6.2.
Bug 4387902
Change-Id: I2b647b8645e0dd8ff743515ac999fe035e636dc5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3035503
(cherry picked from commit 6627276f82)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3051588
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
82f8d2b998
commit
e94f3bb6d8
@@ -125,7 +125,6 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += mii_bus_struct_has_write_c45
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += netif_set_tso_max_size
|
||||
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_gpio_named_count
|
||||
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
|
||||
|
||||
@@ -5439,27 +5439,6 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_OF_GET_NAMED_GPIO_FLAGS_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
of_gpio_named_count)
|
||||
#
|
||||
# Determine if of_gpio_named_count() function is present
|
||||
#
|
||||
# This APIS is removed in commit c7835652a85 ("gpiolib: of: stop
|
||||
# exporting of_gpio_named_count()")
|
||||
# in Linux 6.2.
|
||||
#
|
||||
CODE="
|
||||
#if defined(NV_LINUX_OF_GPIO_H_PRESENT)
|
||||
#include <linux/of_gpio.h>
|
||||
#endif
|
||||
void conftest_of_gpio_named_count(void)
|
||||
{
|
||||
of_gpio_named_count();
|
||||
}
|
||||
"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_OF_GPIO_NAMED_COUNT_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
gpio_chip_struct_has_of_node_present)
|
||||
#
|
||||
# Determine if struct gpio_chip has the of_node member or not.
|
||||
|
||||
Reference in New Issue
Block a user