On Sat, Aug 23, 2014 at 9:54 AM, Mark Brown wrote:
> On Sat, Aug 23, 2014 at 07:00:44AM -0700, Guenter Roeck wrote:
>> On 08/22/2014 05:31 PM, atull wrote:
>
>> >of_get_regulator_init_data() will only have an error if it cannot alloc
>> >the regulator_init_data struct. That's why I did -ENOMEM.
On Sat, Aug 23, 2014 at 07:00:44AM -0700, Guenter Roeck wrote:
> On 08/22/2014 05:31 PM, atull wrote:
> >of_get_regulator_init_data() will only have an error if it cannot alloc
> >the regulator_init_data struct. That's why I did -ENOMEM. If there
> >is no platform data and nothing about the
On 08/22/2014 05:31 PM, atull wrote:
On Fri, 22 Aug 2014, Mark Brown wrote:
On Fri, Aug 22, 2014 at 04:11:33PM -0500, at...@opensource.altera.com wrote:
+ if (pdata && pdata->reg_init_data) {
+ config.init_data = pdata->reg_init_data;
+ } else {
+
On 08/22/2014 05:31 PM, atull wrote:
On Fri, 22 Aug 2014, Mark Brown wrote:
On Fri, Aug 22, 2014 at 04:11:33PM -0500, at...@opensource.altera.com wrote:
+ if (pdata pdata-reg_init_data) {
+ config.init_data = pdata-reg_init_data;
+ } else {
+
On Sat, Aug 23, 2014 at 07:00:44AM -0700, Guenter Roeck wrote:
On 08/22/2014 05:31 PM, atull wrote:
of_get_regulator_init_data() will only have an error if it cannot alloc
the regulator_init_data struct. That's why I did -ENOMEM. If there
is no platform data and nothing about the regulator
On Sat, Aug 23, 2014 at 9:54 AM, Mark Brown broo...@kernel.org wrote:
On Sat, Aug 23, 2014 at 07:00:44AM -0700, Guenter Roeck wrote:
On 08/22/2014 05:31 PM, atull wrote:
of_get_regulator_init_data() will only have an error if it cannot alloc
the regulator_init_data struct. That's why I did
On Fri, 22 Aug 2014, Mark Brown wrote:
> On Fri, Aug 22, 2014 at 04:11:33PM -0500, at...@opensource.altera.com wrote:
>
> > + if (pdata && pdata->reg_init_data) {
> > + config.init_data = pdata->reg_init_data;
> > + } else {
> > + config.init_data =
On Fri, Aug 22, 2014 at 04:11:33PM -0500, at...@opensource.altera.com wrote:
> + if (pdata && pdata->reg_init_data) {
> + config.init_data = pdata->reg_init_data;
> + } else {
> + config.init_data = of_get_regulator_init_data(dev, np);
> + if
From: Alan Tull
To add a regulator, the pmbus device driver needs to add
regulator_desc information to its pmbus_driver_info struct.
The regulator_init_data can be intialized from either
platform data or the device tree.
Signed-off-by: Alan Tull
v2: Remove '#include '
Only one regulator
On Fri, 22 Aug 2014, Mark Brown wrote:
On Fri, Aug 22, 2014 at 04:11:33PM -0500, at...@opensource.altera.com wrote:
+ if (pdata pdata-reg_init_data) {
+ config.init_data = pdata-reg_init_data;
+ } else {
+ config.init_data = of_get_regulator_init_data(dev, np);
From: Alan Tull at...@opensource.altera.com
To add a regulator, the pmbus device driver needs to add
regulator_desc information to its pmbus_driver_info struct.
The regulator_init_data can be intialized from either
platform data or the device tree.
Signed-off-by: Alan Tull
On Fri, Aug 22, 2014 at 04:11:33PM -0500, at...@opensource.altera.com wrote:
+ if (pdata pdata-reg_init_data) {
+ config.init_data = pdata-reg_init_data;
+ } else {
+ config.init_data = of_get_regulator_init_data(dev, np);
+ if (!config.init_data)
12 matches
Mail list logo