[PATCH] ux500: add a few AB8500 regulator consumers

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Jan 17 08:27:45 EST 2011


On Mon, Jan 17, 2011 at 02:04:51PM +0100, Linus Walleij wrote:

> +static struct regulator_consumer_supply ab8500_vaux1_consumers[] = {
> +	{
> +		.dev = NULL,
> +		.supply = "v-display",
> +	},

Your use of NULL where there's no device in this patch is somewhat
erratic.

> +	{
> +		.dev_name = "bh1780",
> +		.supply = "v-als",
> +	},

This supply name (like many of the others) looks a bit odd, it's an
unusual idiom.  Indeed, looking at (first hit in Google):

	www.chipcatalog.com/ROHM/BH1780GLI.htm

it appears that the chip has one supply called VCC (subscripted CC) -
I'd therefore expect the driver to be asking for the supply using that
name.  It looks like most of the supplies here have been given the names
for the rail on the board rather than the name the chip expects for
them.

> +static struct regulator_consumer_supply ab8500_vtvout_consumers[] = {
> +	{
> +		.supply = "v-tvout",
> +	},
> +	{
> +		.supply = "ab8500-gpadc",
> +	},

I suspect there's a device for the ab8500?



More information about the linux-arm-kernel mailing list