Contributors: 15
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Linus Walleij |
72 |
32.73% |
7 |
21.88% |
Anton Vorontsov |
34 |
15.45% |
3 |
9.38% |
Mika Westerberg |
29 |
13.18% |
4 |
12.50% |
Alexandre Courbot |
21 |
9.55% |
5 |
15.62% |
Andy Shevchenko |
19 |
8.64% |
3 |
9.38% |
Yixun Lan |
16 |
7.27% |
1 |
3.12% |
Geert Uytterhoeven |
5 |
2.27% |
1 |
3.12% |
Tomeu Vizoso |
5 |
2.27% |
1 |
3.12% |
Dmitry Torokhov |
4 |
1.82% |
1 |
3.12% |
Bartosz Golaszewski |
4 |
1.82% |
1 |
3.12% |
Jani Nikula |
3 |
1.36% |
1 |
3.12% |
Shiraz Hashim |
3 |
1.36% |
1 |
3.12% |
Stephen Rothwell |
2 |
0.91% |
1 |
3.12% |
David Brownell |
2 |
0.91% |
1 |
3.12% |
Mathias Nyman |
1 |
0.45% |
1 |
3.12% |
Total |
220 |
|
32 |
|
/* 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;
struct fwnode_handle;
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);
#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;
}
#endif /* CONFIG_OF_GPIO */
extern struct notifier_block gpio_of_notifier;
#endif /* GPIOLIB_OF_H */