]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lis3lv02d: make regulator API usage unconditional
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 5 Oct 2011 00:43:23 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 12 Oct 2011 06:32:18 +0000 (17:32 +1100)
commitdd9c8dcaf0ef14932db77c163db8d04289d1694b
treef4c4c14928efa470a0d90086710b16547cae49a8
parent2b77979bf3a3134e9fe7eae65f0aeec5728194fb
lis3lv02d: make regulator API usage unconditional

The regulator API contains a range of features for stubbing itself out
when not in use and for transparently restricting the actual effect of
regulator API calls where they can't be supported on a particular system
so that drivers don't need to individually implement this.  Simplify the
driver slightly by making use of this idiom.

The only in tree user is ecovec24 which does not use the regulator API.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Éric Piel <eric.piel@tremplin-utc.net>
Cc: Ilkka Koskinen <ilkka.koskinen@nokia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/misc/lis3lv02d/lis3lv02d_i2c.c
include/linux/lis3lv02d.h