mfd: Near complete mc13783 rewrite
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 29 Nov 2009 23:53:17 +0000 (00:53 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 13 Dec 2009 18:21:54 +0000 (19:21 +0100)
commit9e2726776d45b1e383625b3ce4f8b511456e09ad
tree732a12aaa78af36fa5cb345a0210ac7e415082b5
parentd7f81c4416a2246c8f03441d52a219af7c109850
mfd: Near complete mc13783 rewrite

This fixes several things while still providing the old API:

 - simplify and fix locking
 - better error handling
 - don't ack all irqs making it impossible to detect a reset of the
   rtc
 - use a timeout variant to wait for completion of ADC conversion
 - provide platform-data to regulator subdevice (This allows making
   struct mc13783 opaque for other drivers after the regulator driver is
   updated to use its platform_data.)
 - expose all interrupts
 - use threaded irq

After all users in mainline are converted to the new API, some things
(e.g. mc13783-private.h) can go away.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/mc13783-core.c
include/linux/mfd/mc13783-private.h
include/linux/mfd/mc13783.h