Contributors: 17
| Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
| Linus Walleij |
72 |
26.87% |
7 |
20.00% |
| Bartosz Golaszewski |
45 |
16.79% |
2 |
5.71% |
| Anton Vorontsov |
34 |
12.69% |
3 |
8.57% |
| Mika Westerberg |
29 |
10.82% |
4 |
11.43% |
| Alexandre Courbot |
21 |
7.84% |
5 |
14.29% |
| Andy Shevchenko |
21 |
7.84% |
3 |
8.57% |
| Yixun Lan |
16 |
5.97% |
1 |
2.86% |
| Grant C. Likely |
5 |
1.87% |
1 |
2.86% |
| Geert Uytterhoeven |
5 |
1.87% |
1 |
2.86% |
| Tomeu Vizoso |
5 |
1.87% |
1 |
2.86% |
| Dmitry Torokhov |
4 |
1.49% |
1 |
2.86% |
| Shiraz Hashim |
3 |
1.12% |
1 |
2.86% |
| Stephen Rothwell |
2 |
0.75% |
1 |
2.86% |
| Masahiro Yamada |
2 |
0.75% |
1 |
2.86% |
| David Brownell |
2 |
0.75% |
1 |
2.86% |
| Andrei Lalaev |
1 |
0.37% |
1 |
2.86% |
| Mathias Nyman |
1 |
0.37% |
1 |
2.86% |
| Total |
268 |
|
35 |
|
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef GPIOLIB_OF_H
#define GPIOLIB_OF_H
#include <linux/err.h>
#include <linux/types.h>
#include <linux/notifier.h>
struct device_node;
struct fwnode_handle;
struct fwnode_reference_args;
struct gpio_chip;
struct gpio_desc;
struct gpio_device;
#ifdef CONFIG_OF_GPIO
struct gpio_desc *of_find_gpio(struct device_node *np,
const char *con_id,
unsigned int idx,
unsigned long *lookupflags);
int of_gpiochip_add(struct gpio_chip *gc);
void of_gpiochip_remove(struct gpio_chip *gc);
bool of_gpiochip_instance_match(struct gpio_chip *gc, unsigned int index);
int of_gpio_count(const struct fwnode_handle *fwnode, const char *con_id);
int of_gpiochip_get_lflags(struct gpio_chip *chip,
struct fwnode_reference_args *gpiospec,
unsigned long *lflags);
#else
static inline struct gpio_desc *of_find_gpio(struct device_node *np,
const char *con_id,
unsigned int idx,
unsigned long *lookupflags)
{
return ERR_PTR(-ENOENT);
}
static inline int of_gpiochip_add(struct gpio_chip *gc) { return 0; }
static inline void of_gpiochip_remove(struct gpio_chip *gc) { }
static inline bool of_gpiochip_instance_match(struct gpio_chip *gc,
unsigned int index)
{
return false;
}
static inline int of_gpio_count(const struct fwnode_handle *fwnode,
const char *con_id)
{
return 0;
}
static inline int of_gpiochip_get_lflags(struct gpio_chip *chip,
struct fwnode_reference_args *gpiospec,
unsigned long *lflags)
{
return -ENOENT;
}
#endif /* CONFIG_OF_GPIO */
extern struct notifier_block gpio_of_notifier;
#endif /* GPIOLIB_OF_H */