/* This is used directly or indirectly to implement gpio_get_value(). It returns the zero or nonzero value provided by the associated gpio_chip.get() method; or zero if no such method is provided.  */
int __gpio_get_value(unsigned gpio)
/* This is used directly or indirectly to implement gpio_get_value(). It returns the zero or nonzero value provided by the associated gpio_chip.get() method; or zero if no such method is provided.  */
int __gpio_get_value(unsigned gpio)
{
	struct gpio_chip	*chip;
	chip = gpio_to_chip(gpio);
	WARN_ON(extra_checks && chip->can_sleep);
	return chip->get ? chip->get(chip, gpio - chip->base) : 0;
}