]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/gpio/gpiolib-sysfs.c
regmap: correct the description of structure element in reg_field
[karo-tx-linux.git] / drivers / gpio / gpiolib-sysfs.c
index 5f2150b619a72127b11942d712599d053ff62676..2ac1800b58bb7052032ecd23d3acf270a1deb132 100644 (file)
@@ -41,7 +41,7 @@ static DEFINE_MUTEX(sysfs_lock);
 static ssize_t gpio_direction_show(struct device *dev,
                struct device_attribute *attr, char *buf)
 {
-       const struct gpio_desc  *desc = dev_get_drvdata(dev);
+       struct gpio_desc        *desc = dev_get_drvdata(dev);
        ssize_t                 status;
 
        mutex_lock(&sysfs_lock);
@@ -161,7 +161,7 @@ static int gpio_setup_irq(struct gpio_desc *desc, struct device *dev,
        desc->flags &= ~GPIO_TRIGGER_MASK;
 
        if (!gpio_flags) {
-               gpio_unlock_as_irq(desc->chip, gpio_chip_hwgpio(desc));
+               gpiochip_unlock_as_irq(desc->chip, gpio_chip_hwgpio(desc));
                ret = 0;
                goto free_id;
        }
@@ -200,7 +200,7 @@ static int gpio_setup_irq(struct gpio_desc *desc, struct device *dev,
        if (ret < 0)
                goto free_id;
 
-       ret = gpio_lock_as_irq(desc->chip, gpio_chip_hwgpio(desc));
+       ret = gpiochip_lock_as_irq(desc->chip, gpio_chip_hwgpio(desc));
        if (ret < 0) {
                gpiod_warn(desc, "failed to flag the GPIO for IRQ\n");
                goto free_id;