lineage_android_kernel_xiao.../drivers/regulator
Mark Brown cd99758ba3 mfd: Convert wm831x to irq_domain
The modern idiom is to use irq_domain to allocate interrupts. This is
useful partly to allow further infrastructure to be based on the domains
and partly because it makes it much easier to allocate virtual interrupts
to devices as we don't need to allocate a contiguous range of interrupt
numbers.

Convert the wm831x driver over to this infrastructure, using a legacy
IRQ mapping if an irq_base is specified in platform data and otherwise
using a linear mapping, always registering the interrupts even if they
won't ever be used. Only boards which need to use the GPIOs as
interrupts should need to use an irq_base.

This means that we can't use the MFD irq_base management since the
unless we're using an explicit irq_base from platform data we can't rely
on a linear mapping of interrupts.  Instead we need to map things via
the irq_domain - provide a conveniencem function wm831x_irq() to save a
small amount of typing when doing so. Looking at this I couldn't clearly
see anything the MFD core could do to make this nicer.

Since we're not supporting device tree yet there's no meaningful
advantage if we don't do this conversion in one, the fact that the
interrupt resources are used for repeated IP blocks makes accessor
functions for the irq_domain more trouble to do than they're worth.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2012-05-20 17:27:07 +02:00
..
88pm8607.c
Kconfig Merge tag 'regulator-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator into next/drivers 2012-03-24 11:29:58 +00:00
Makefile Merge tag 'regulator-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator into next/drivers 2012-03-24 11:29:58 +00:00
aat2870-regulator.c
ab3100.c
ab8500.c
ad5398.c
anatop-regulator.c regulator: Fix a build warning in the anatop driver for 3.4 2012-04-10 10:26:41 -07:00
core.c regulator: Fixes for -rc1 2012-04-04 10:09:30 -07:00
da903x.c
da9052-regulator.c
db8500-prcmu.c
dbx500-prcmu.c
dbx500-prcmu.h
dummy.c
dummy.h
fixed-helper.c regulator: Remove non-existent parameter from fixed-helper.c kernel doc 2012-03-31 19:41:20 +01:00
fixed.c
gpio-regulator.c
isl6271a-regulator.c
lp3971.c
lp3972.c
max1586.c
max8649.c Merge remote-tracking branch 'regulator/topic/stub' into regulator-next 2012-03-18 21:38:20 +00:00
max8660.c
max8925-regulator.c
max8952.c
max8997.c
max8998.c
mc13xxx-regulator-core.c
mc13xxx.h
mc13783-regulator.c
mc13892-regulator.c regulator: Fix unbalanced lock/unlock in mc13892_regulator_probe error path 2012-03-26 18:32:11 +01:00
of_regulator.c
pcap-regulator.c
pcf50633-regulator.c
s5m8767.c regulator: Fix setting new voltage in s5m8767_set_voltage 2012-03-31 11:26:19 +01:00
tps6105x-regulator.c
tps6507x-regulator.c regulator: Convert tps6507x to set_voltage_sel 2012-03-14 14:13:17 +00:00
tps6524x-regulator.c regulator: Updates for 3.4 2012-03-21 10:34:56 -07:00
tps6586x-regulator.c regulator: tps6586x: Fix list minimal voltage setting for LDO0 2012-03-26 11:55:29 +01:00
tps62360-regulator.c
tps65023-regulator.c
tps65217-regulator.c
tps65910-regulator.c mfd: Commonize tps65910 regmap access through header 2012-05-20 17:25:23 +02:00
tps65912-regulator.c
twl-regulator.c
userspace-consumer.c
virtual.c
wm831x-dcdc.c mfd: Convert wm831x to irq_domain 2012-05-20 17:27:07 +02:00
wm831x-isink.c mfd: Convert wm831x to irq_domain 2012-05-20 17:27:07 +02:00
wm831x-ldo.c mfd: Convert wm831x to irq_domain 2012-05-20 17:27:07 +02:00
wm8350-regulator.c regulator: Only update [LDOx|DCx]_HIB_MODE bits in wm8350_[ldo|dcdc]_set_suspend_disable 2012-03-29 12:06:24 +01:00
wm8400-regulator.c
wm8994-regulator.c