regulator: twl-regulator: make TWL4030_ALLOW_UNSUPPORTED more configurable.
authorNeilBrown <neilb@suse.de>
Tue, 8 May 2012 19:44:00 +0000 (05:44 +1000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 9 May 2012 09:04:33 +0000 (10:04 +0100)
commit411a2df5090ccb88f4c3726e4951ebed579fec11
treea7cafad203cc96667da2a8c5f8d9d524cc29ea2f
parentc30540d78e60068d5638b79f1bcc92b259c3c7e2
regulator: twl-regulator: make TWL4030_ALLOW_UNSUPPORTED more configurable.

The regulators in the twl4030 can provide some voltage settings
that are not offically supported.
These settings are disabled by default, but can be enabled with
  CONFIG_TWL4030_ALLOW_UNSUPPORTED=y
However
 - that config variable is not mentioned in any Kconfig so cannot
   be used, and
 - a global setting is clumsy - a per regulator setting would be
   better.

So define a new 'feature' flag that a board file can set to enable
these unsupported volatages for boards which need them.

This flag cannot (yet) be set using device-tree.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/twl-regulator.c
include/linux/i2c/twl.h