Re: [PATCH] regulator: Fix desc_id for tps65023/6507x/65910

Mark Brown
2011-05-12T06:30:25Z

On Thu, May 12, 2011 at 01:47:50PM +0800, Axel Lin wrote:
> The desc_id variable should not be a static variable.
>
> The rest of the code assumes the desc_id must less than TPSxxxxx_NUM_REGULATOR.
> If we set desc_id to be a static variable, checking the return value of
> rdev_get_id() may return error.

Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>