mfd: Use bulk read to fill WM8350 register cache
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 4 Feb 2009 21:43:55 +0000 (22:43 +0100)
committerSamuel Ortiz <samuel@sortiz.org>
Sat, 4 Apr 2009 22:32:19 +0000 (00:32 +0200)
commit9dfd338198bec67ebc82ed363078f9d8aa74ec3e
tree90edfba283a4679650e5a9e0d68c6122d12b69a9
parent22e2df7d5ff50e5a62d4945b13c83525a2617ef5
mfd: Use bulk read to fill WM8350 register cache

Some I2C controllers have high overheads for setting up I2C operations
which makes the register cache setup on startup excessively slow since
it does a lot of small transactions. Reduce this overhead by doing a
bulk read of the entire register bank and filtering out what we don't
need later.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
drivers/mfd/wm8350-core.c