Re: [PATCH 2/2] regulator: max8660: Add error message for missing regulator data

From: Mark Brown
Date: Tue Mar 24 2015 - 13:23:13 EST


On Tue, Mar 24, 2015 at 05:40:11PM +0100, Markus Pargmann wrote:
> On Tue, Mar 24, 2015 at 09:08:57AM -0700, Mark Brown wrote:

> > Why is the platform data mandatory? In general the goal is that a
> > regulator driver should be able to probe with no platform data.

> subdevs[]->platform_data is a struct regulator_init_data which has to
> exist so we can register the regulator later.

No, that's not the case. The regulator API does not require that one be
provided in order to support the above use case.

Attachment: signature.asc
Description: Digital signature