aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2013-02-15 14:46:16 +0900
committerGrant Likely <grant.likely@secretlab.ca>2013-03-02 13:20:20 +0000
commit24d7628fe8b10bb3770a11ddf71719613832a298 (patch)
treee05816b01b28959dc48d10f3654046738a805041 /drivers/gpio
parentdef634338d3ffb32fbe9b0a2d70cc24ef909cd4f (diff)
downloadkernel_goldelico_gta04-24d7628fe8b10bb3770a11ddf71719613832a298.zip
kernel_goldelico_gta04-24d7628fe8b10bb3770a11ddf71719613832a298.tar.gz
kernel_goldelico_gta04-24d7628fe8b10bb3770a11ddf71719613832a298.tar.bz2
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index a33bfc2..c2534d6 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -172,12 +172,12 @@ static int gpio_ensure_requested(struct gpio_desc *desc)
return 0;
}
-/* caller holds gpio_lock *OR* gpio is marked as requested */
static struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc)
{
return desc ? desc->chip : NULL;
}
+/* caller holds gpio_lock *OR* gpio is marked as requested */
struct gpio_chip *gpio_to_chip(unsigned gpio)
{
return gpiod_to_chip(gpio_to_desc(gpio));