13 Jan
2011
13 Jan
'11
2:31 p.m.
On Thu, 2011-01-13 at 12:20 +0000, Dimitris Papastamos wrote:
For common scenarios, device drivers can provide a table of all the registers that are at least either readable/writable/volatile. The idea is that if a register lookup fails, all of its read/write/vol members will be zero and will be treated as default. This also reduces the size of the register access array.
Signed-off-by: Dimitris Papastamos dp@opensource.wolfsonmicro.com
Acked-by: Liam Girdwood lrg@slimlogic.co.uk
I think we may be getting to the point where we should probably look into making this register cache functionality available to other non ASoC I2C and SPI based drivers.
Thanks
Liam
--
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk