[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140811185849.GK17528@sirena.org.uk>
Date: Mon, 11 Aug 2014 19:58:49 +0100
From: Mark Brown <broonie@...nel.org>
To: Axel Lin <axel.lin@...ics.com>
Cc: Liam Girdwood <lgirdwood@...il.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] regulator: Add stub function for
devm_regulator_get_exclusive
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.
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists