summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/dev/gpio/ofw_gpiobus.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/dev/gpio/ofw_gpiobus.c')
-rw-r--r--freebsd/sys/dev/gpio/ofw_gpiobus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/freebsd/sys/dev/gpio/ofw_gpiobus.c b/freebsd/sys/dev/gpio/ofw_gpiobus.c
index 70495a2a..1a87121c 100644
--- a/freebsd/sys/dev/gpio/ofw_gpiobus.c
+++ b/freebsd/sys/dev/gpio/ofw_gpiobus.c
@@ -65,8 +65,8 @@ static int ofw_gpiobus_parse_gpios_impl(device_t, phandle_t, char *,
* tree consumers.
*
*/
-static int
-gpio_pin_get_by_ofw_impl(device_t consumer, phandle_t cnode,
+int
+gpio_pin_get_by_ofw_propidx(device_t consumer, phandle_t cnode,
char *prop_name, int idx, gpio_pin_t *out_pin)
{
phandle_t xref;
@@ -120,7 +120,7 @@ gpio_pin_get_by_ofw_idx(device_t consumer, phandle_t node,
int idx, gpio_pin_t *pin)
{
- return (gpio_pin_get_by_ofw_impl(consumer, node, "gpios", idx, pin));
+ return (gpio_pin_get_by_ofw_propidx(consumer, node, "gpios", idx, pin));
}
int
@@ -128,7 +128,7 @@ gpio_pin_get_by_ofw_property(device_t consumer, phandle_t node,
char *name, gpio_pin_t *pin)
{
- return (gpio_pin_get_by_ofw_impl(consumer, node, name, 0, pin));
+ return (gpio_pin_get_by_ofw_propidx(consumer, node, name, 0, pin));
}
int