mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 05:11:48 +00:00
gpiolib: move comment to right function
This comment applies to gpio_to_chip(), not gpiod_to_chip(). Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
parent
def634338d
commit
24d7628fe8
@ -172,12 +172,12 @@ static int gpio_ensure_requested(struct gpio_desc *desc)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* caller holds gpio_lock *OR* gpio is marked as requested */
|
|
||||||
static struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc)
|
static struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc)
|
||||||
{
|
{
|
||||||
return desc ? desc->chip : NULL;
|
return desc ? desc->chip : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* caller holds gpio_lock *OR* gpio is marked as requested */
|
||||||
struct gpio_chip *gpio_to_chip(unsigned gpio)
|
struct gpio_chip *gpio_to_chip(unsigned gpio)
|
||||||
{
|
{
|
||||||
return gpiod_to_chip(gpio_to_desc(gpio));
|
return gpiod_to_chip(gpio_to_desc(gpio));
|
||||||
|
Loading…
Reference in New Issue
Block a user