]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitffa634b0e0d16663444036280f1e6733e1e7ca83
treec4923c176186b9d1a596fd4274d05ddf8a5c2d49
parentb845c75e54bec58ce37f578e9156c1a76a57f3fb
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