Re: [PATCH] regulator: Add stub function for devm_regulator_get_exclusive
From: Mark Brown
Date: Mon Aug 11 2014 - 14:59:00 EST
On Sat, Aug 09, 2014 at 12:15:07PM +0800, Axel Lin wrote:
> static inline struct regulator *__must_check
> +devm_regulator_get_exclusive(struct device *dev, const char *id)
> +{
> + return NULL;
> +}
> +
> +static inline struct regulator *__must_check
This should be returning an error pointer, something wanting exclusive
control of a regulator would normally expect to have an actual regulator
and want to do things with it and so probably won't work well with a
dummy regulator.
Attachment:
signature.asc
Description: Digital signature