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

2016-05-15 Thread Lu Baolu
Hi, On 05/13/2016 07:17 PM, Mark Brown wrote: > 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_hig

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

2016-05-13 Thread Mark Brown
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, > +

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

2016-05-04 Thread Lu Baolu
Add support to retrieve fixed voltage configure information through ACPI interface. This is needed for Intel Bay Trail devices, where a GPIO is used to control the USB vbus. Signed-off-by: Lu Baolu --- drivers/regulator/fixed.c | 46 ++ 1 file changed,