提交 2f323b85 编写于 作者: J Johan Hovold 提交者: Linus Walleij

gpio: sysfs: rename active-low helper

Rename active-low helper using common prefix.

Also remove unnecessary manipulation of value argument.
Signed-off-by: NJohan Hovold <johan@kernel.org>
Reviewed-by: NAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 72eba6f6
...@@ -285,7 +285,7 @@ static ssize_t edge_store(struct device *dev, ...@@ -285,7 +285,7 @@ static ssize_t edge_store(struct device *dev,
static DEVICE_ATTR_RW(edge); static DEVICE_ATTR_RW(edge);
/* Caller holds gpiod-data mutex. */ /* 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 gpiod_data *data = dev_get_drvdata(dev);
struct gpio_desc *desc = data->desc; struct gpio_desc *desc = data->desc;
...@@ -339,7 +339,7 @@ static ssize_t active_low_store(struct device *dev, ...@@ -339,7 +339,7 @@ static ssize_t active_low_store(struct device *dev,
status = kstrtol(buf, 0, &value); status = kstrtol(buf, 0, &value);
if (status == 0) if (status == 0)
status = sysfs_set_active_low(dev, value != 0); status = gpio_sysfs_set_active_low(dev, value);
mutex_unlock(&data->mutex); mutex_unlock(&data->mutex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册