]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lis3lv02d: make regulator API usage unconditional
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 24 Oct 2011 14:58:40 +0000 (01:58 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Oct 2011 09:07:57 +0000 (20:07 +1100)
commit670de10c7109d1a1c079cb5df3d51a61734a2faa
treefec944e97bbb9af2aa76a92539f4b72947a0892c
parent200cb4bc551b1dbbbf864d99fcd3707b68c0788f
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