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

From: Liam Girdwood
Date: Fri May 13 2011 - 08:35:01 EST


On Thu, 2011-05-12 at 13:47 +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.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
> Cc: Anuj Aggarwal <anuj.aggarwal@xxxxxx>
> Cc: Graeme Gregory <gg@xxxxxxxxxxxxxxx>


Applied.

Liam

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/