Re: [PATCH v8 1/7] regulator: fixed: add support for ACPI interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 05, 2016 at 01:32:57PM +0800, Lu Baolu wrote:

> +	gpiod = gpiod_get(dev, "gpio", GPIOD_ASIS);
> +	if (IS_ERR(gpiod))
> +		return ERR_PTR(-ENODEV);

> +	config->gpio = desc_to_gpio(gpiod);
> +	config->enable_high = device_property_read_bool(dev,
> +							"enable-active-high");

> +	gpiod_put(gpiod);

This isn't going to work at all if the GPIO is shared between multiple
regulators but I can't immediately see a sensible way to fix that
without some surgery on the GPIO APIs so let's leave it for now.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux