aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorAdam Thomson <[email protected]>2020-07-13 10:38:57 +0100
committerLee Jones <[email protected]>2020-08-13 07:49:47 +0100
commit091c6110862bce4e2380e353cb062dcb6a56bcb6 (patch)
treee398d14aed0f3ab58dbb0601cdcf3817a4167d1d /lib/test_overflow.c
parenta3f673d0092cee167b2a6e3d61454405d0a06b25 (diff)
mfd: da9063: Fix revision handling to correctly select reg tables
The current implementation performs checking in the i2c_probe() function of the variant_code but does this immediately after the containing struct has been initialised as all zero. This means the check for variant code will always default to using the BB tables and will never select AD. The variant code is subsequently set by device_init() and later used by the RTC so really it's a little fortunate this mismatch works. This update adds raw I2C read access functionality to read the chip and variant/revision information (common to all revisions) so that it can subsequently correctly choose the proper regmap tables for real initialisation. Signed-off-by: Adam Thomson <[email protected]> Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions