Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f323b85 authored by Johan Hovold's avatar Johan Hovold Committed by Linus Walleij
Browse files

gpio: sysfs: rename active-low helper



Rename active-low helper using common prefix.

Also remove unnecessary manipulation of value argument.

Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Reviewed-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 72eba6f6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -285,7 +285,7 @@ static ssize_t edge_store(struct device *dev,
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);