regulator: Let drivers know when they use the stub API
authorJean Delvare <khali@linux-fr.org>
Sat, 3 Apr 2010 15:37:45 +0000 (17:37 +0200)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Mon, 19 Apr 2010 12:17:10 +0000 (13:17 +0100)
commitbe1a50d4eba4cdb3ebf9d97a0a8693c153436775
treec4923c176186b9d1a596fd4274d05ddf8a5c2d49
parent13bd8e4673d527a9e48f41956b11d391e7c2cfe0
regulator: Let drivers know when they use the stub API

Have the stub variant of regulator_get() return NULL, so that drivers
can (but still don't have to) handle this case specifically.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Jerome Oufella <jerome.oufella@savoirfairelinux.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
include/linux/regulator/consumer.h