[RFC PATCH 02/11] regulator: Fix error check in set_consumer_device_supply

Mark Brown broonie at opensource.wolfsonmicro.com
Thu Sep 15 09:33:37 EDT 2011


On Thu, Sep 15, 2011 at 04:51:58PM +0530, Rajendra Nayak wrote:
> The parameters to set_consumer_device_supply() can be considered
> invalid (and hence it could return -EINVAL) if nether consumer_dev nor
> consumer_dev_name are passed, not when *both* are passed.

> Signed-off-by: Rajendra Nayak <rnayak at ti.com>

No, passing both is a clear bug on the part of the caller - the two ways
of specifying the device are not supposed to be used together.



More information about the linux-arm-kernel mailing list