@@ -119,20 +119,20 @@ int of_get_named_gpio_flags(struct device_node *np, const char *list_name,
119
119
EXPORT_SYMBOL (of_get_named_gpio_flags );
120
120
121
121
/**
122
- * of_get_gpio_hog () - Get a GPIO hog descriptor, names and flags for GPIO API
122
+ * of_parse_own_gpio () - Get a GPIO hog descriptor, names and flags for GPIO API
123
123
* @np: device node to get GPIO from
124
124
* @name: GPIO line name
125
125
* @lflags: gpio_lookup_flags - returned from of_find_gpio() or
126
- * of_get_gpio_hog ()
126
+ * of_parse_own_gpio ()
127
127
* @dflags: gpiod_flags - optional GPIO initialization flags
128
128
*
129
129
* Returns GPIO descriptor to use with Linux GPIO API, or one of the errno
130
130
* value on the error condition.
131
131
*/
132
- static struct gpio_desc * of_get_gpio_hog (struct device_node * np ,
133
- const char * * name ,
134
- enum gpio_lookup_flags * lflags ,
135
- enum gpiod_flags * dflags )
132
+ static struct gpio_desc * of_parse_own_gpio (struct device_node * np ,
133
+ const char * * name ,
134
+ enum gpio_lookup_flags * lflags ,
135
+ enum gpiod_flags * dflags )
136
136
{
137
137
struct device_node * chip_np ;
138
138
enum of_gpio_flags xlate_flags ;
@@ -196,13 +196,13 @@ static struct gpio_desc *of_get_gpio_hog(struct device_node *np,
196
196
}
197
197
198
198
/**
199
- * of_gpiochip_scan_hogs - Scan gpio-controller and apply GPIO hog as requested
199
+ * of_gpiochip_scan_gpios - Scan gpio-controller for gpio definitions
200
200
* @chip: gpio chip to act on
201
201
*
202
202
* This is only used by of_gpiochip_add to request/set GPIO initial
203
203
* configuration.
204
204
*/
205
- static void of_gpiochip_scan_hogs (struct gpio_chip * chip )
205
+ static void of_gpiochip_scan_gpios (struct gpio_chip * chip )
206
206
{
207
207
struct gpio_desc * desc = NULL ;
208
208
struct device_node * np ;
@@ -214,7 +214,7 @@ static void of_gpiochip_scan_hogs(struct gpio_chip *chip)
214
214
if (!of_property_read_bool (np , "gpio-hog" ))
215
215
continue ;
216
216
217
- desc = of_get_gpio_hog (np , & name , & lflags , & dflags );
217
+ desc = of_parse_own_gpio (np , & name , & lflags , & dflags );
218
218
if (IS_ERR (desc ))
219
219
continue ;
220
220
@@ -440,7 +440,7 @@ int of_gpiochip_add(struct gpio_chip *chip)
440
440
441
441
of_node_get (chip -> of_node );
442
442
443
- of_gpiochip_scan_hogs (chip );
443
+ of_gpiochip_scan_gpios (chip );
444
444
445
445
return 0 ;
446
446
}
0 commit comments