media: i2c: rdacm20: Break MAX9271 configuration into functions
Split the rdacm20_initialize code that modifies the MAX9271 state into
smaller functions, to ease refactoring and allow clear visibility of
configuration orders.
This commit should be a non-configurational change - however it's not.
Please note this commit pulls the configuration of register 0x04 and
0x07 into a single function - and changes the sequence of programming.
The original code flow was: 0x00, 0x04, (r)0x1e, 0x08, 0x0d, 0x07
This new code flow is : 0x00, 0x04, 0x07, (r)0x1e, 0x08, 0x0d
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
---
This change is probably overkill - but it does / did help me get my head
around the ordering of the configuration - and makes it much easier to
add extra calls to read/verify the ID and try different configuration
orderings.
1 file changed