Re: [PATCH v2 2/2] staging: iio: ad7780: moving ad7780 out of staging

2019-02-02 Thread Jonathan Cameron
On Sun, 27 Jan 2019 18:33:52 -0200 Renato Lui Geh wrote: > Move ad7780 ADC driver out of staging and into the mainline. > > The ad7780 is a sigma-delta analog to digital converter. This driver provides > reading voltage values and status bits from both the ad778x and ad717x series. > Its

Re: [PATCH v2 2/2] staging: iio: ad7780: moving ad7780 out of staging

2019-01-28 Thread Renato Lui Geh
On 01/28, Dan Carpenter wrote: On Sun, Jan 27, 2019 at 06:33:52PM -0200, Renato Lui Geh wrote: + st->reg = devm_regulator_get(>dev, "avdd"); + if (IS_ERR(st->reg)) + return PTR_ERR(st->reg); + + ret = regulator_enable(st->reg); + if (ret) { +

Re: [PATCH v2 2/2] staging: iio: ad7780: moving ad7780 out of staging

2019-01-28 Thread Dan Carpenter
On Sun, Jan 27, 2019 at 06:33:52PM -0200, Renato Lui Geh wrote: > + st->reg = devm_regulator_get(>dev, "avdd"); > + if (IS_ERR(st->reg)) > + return PTR_ERR(st->reg); > + > + ret = regulator_enable(st->reg); > + if (ret) { > + dev_err(>dev, "Failed to enable

[PATCH v2 2/2] staging: iio: ad7780: moving ad7780 out of staging

2019-01-27 Thread Renato Lui Geh
Move ad7780 ADC driver out of staging and into the mainline. The ad7780 is a sigma-delta analog to digital converter. This driver provides reading voltage values and status bits from both the ad778x and ad717x series. Its interface also allows writing on the FILTER and GAIN GPIO pins on the