projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72eba6f
)
gpio: sysfs: rename active-low helper
author
Johan Hovold
<johan@kernel.org>
Mon, 4 May 2015 15:10:46 +0000
(17:10 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 12 May 2015 08:47:48 +0000
(10:47 +0200)
Rename active-low helper using common prefix.
Also remove unnecessary manipulation of value argument.
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpiolib-sysfs.c
b/drivers/gpio/gpiolib-sysfs.c
index 1540f7d60f06ac7cf98399e791b62455fe55700d..06372c7c822c97f57d249409308477a764d524c4 100644
(file)
--- a/
drivers/gpio/gpiolib-sysfs.c
+++ b/
drivers/gpio/gpiolib-sysfs.c
@@
-285,7
+285,7
@@
out_unlock:
static DEVICE_ATTR_RW(edge);
/* Caller holds gpiod-data mutex. */
-static int sysfs_set_active_low(struct device *dev, int value)
+static int
gpio_
sysfs_set_active_low(struct device *dev, int value)
{
struct gpiod_data *data = dev_get_drvdata(dev);
struct gpio_desc *desc = data->desc;
@@
-339,7
+339,7
@@
static ssize_t active_low_store(struct device *dev,
status = kstrtol(buf, 0, &value);
if (status == 0)
- status =
sysfs_set_active_low(dev, value != 0
);
+ status =
gpio_sysfs_set_active_low(dev, value
);
mutex_unlock(&data->mutex);