summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib-sysfs.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2015-05-04 11:10:46 -0400
committerLinus Walleij <linus.walleij@linaro.org>2015-05-12 04:47:48 -0400
commit2f323b85675d89c85e72bec191d42b72d905a652 (patch)
tree428a01259ac943eef62563714145ad1b2bc27cbe /drivers/gpio/gpiolib-sysfs.c
parent72eba6f66a0017356380eec64db8780305aee2b8 (diff)
gpio: sysfs: rename active-low helper
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>
Diffstat (limited to 'drivers/gpio/gpiolib-sysfs.c')
-rw-r--r--drivers/gpio/gpiolib-sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib-sysfs.c b/drivers/gpio/gpiolib-sysfs.c
index 1540f7d60f06..06372c7c822c 100644
--- a/drivers/gpio/gpiolib-sysfs.c
+++ b/drivers/gpio/gpiolib-sysfs.c
@@ -285,7 +285,7 @@ out_unlock:
285static DEVICE_ATTR_RW(edge); 285static DEVICE_ATTR_RW(edge);
286 286
287/* Caller holds gpiod-data mutex. */ 287/* Caller holds gpiod-data mutex. */
288static int sysfs_set_active_low(struct device *dev, int value) 288static int gpio_sysfs_set_active_low(struct device *dev, int value)
289{ 289{
290 struct gpiod_data *data = dev_get_drvdata(dev); 290 struct gpiod_data *data = dev_get_drvdata(dev);
291 struct gpio_desc *desc = data->desc; 291 struct gpio_desc *desc = data->desc;
@@ -339,7 +339,7 @@ static ssize_t active_low_store(struct device *dev,
339 339
340 status = kstrtol(buf, 0, &value); 340 status = kstrtol(buf, 0, &value);
341 if (status == 0) 341 if (status == 0)
342 status = sysfs_set_active_low(dev, value != 0); 342 status = gpio_sysfs_set_active_low(dev, value);
343 343
344 mutex_unlock(&data->mutex); 344 mutex_unlock(&data->mutex);
345 345