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

Commit e567c35f authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Linus Walleij
Browse files

gpiolib: Update documentation of struct acpi_gpio_info



It seems the code had been changed, but description left untouched.

Update description of the struct acpi_gpio_info and relative comments
accordingly.

Fixes: commit 52044723 ("ACPI / gpio: Add irq_type when a GPIO is used as an interrupt")
Cc: Christophe RICARD <christophe.ricard@gmail.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 5e4e6fb3
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -416,9 +416,8 @@ static int acpi_populate_gpio_lookup(struct acpi_resource *ares, void *data)
			agpio->connection_type == ACPI_RESOURCE_GPIO_TYPE_INT;
			agpio->connection_type == ACPI_RESOURCE_GPIO_TYPE_INT;


		/*
		/*
		 * ActiveLow is only specified for GpioInt resource. If
		 * Polarity and triggering are only specified for GpioInt
		 * GpioIo is used then the only way to set the flag is
		 * resource.
		 * to use _DSD "gpios" property.
		 * Note: we expect here:
		 * Note: we expect here:
		 * - ACPI_ACTIVE_LOW == GPIO_ACTIVE_LOW
		 * - ACPI_ACTIVE_LOW == GPIO_ACTIVE_LOW
		 * - ACPI_ACTIVE_HIGH == GPIO_ACTIVE_HIGH
		 * - ACPI_ACTIVE_HIGH == GPIO_ACTIVE_HIGH
+2 −1
Original line number Original line Diff line number Diff line
@@ -76,7 +76,8 @@ struct gpio_device {
/**
/**
 * struct acpi_gpio_info - ACPI GPIO specific information
 * struct acpi_gpio_info - ACPI GPIO specific information
 * @gpioint: if %true this GPIO is of type GpioInt otherwise type is GpioIo
 * @gpioint: if %true this GPIO is of type GpioInt otherwise type is GpioIo
 * @active_low: in case of @gpioint, the pin is active low
 * @polarity: interrupt polarity as provided by ACPI
 * @triggering: triggering type as provided by ACPI
 */
 */
struct acpi_gpio_info {
struct acpi_gpio_info {
	bool gpioint;
	bool gpioint;