Re: [PATCH v3] regulator: Fix _regulator_get_voltage if get_voltagecallback is NULL

From: Mark Brown
Date: Mon May 23 2011 - 10:33:37 EST


On Mon, May 23, 2011 at 08:08:10PM +0800, Axel Lin wrote:
> In the case of get_voltage callback is NULL, current implementation in
> _regulator_get_voltage will return -EINVAL.
>
> Also returns proper error if ret is negative value.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>

Acked-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
--
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/