i2c: rk3x: Change SoC data to not use array
authorDavid Wu <david.wu@rock-chips.com>
Mon, 16 May 2016 13:57:39 +0000 (21:57 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 17 Jun 2016 11:39:15 +0000 (13:39 +0200)
commitbef358c4fe2efa7467297303cafe973748afda93
tree9ac77848d066b4e254051e164b5a23789d7072d6
parent69eda367ac4240428b9d16ab0c81113753ea079a
i2c: rk3x: Change SoC data to not use array

Specifying the i2c SoC data in an array provides very little benefit and
gets unwieldly / confusing as the array grows since the next bit of code
needs to refer to elements in the array by their raw integral index.

Let's just create a single 'static const' structure for each SoC so that
we can refer to these structures by ID.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Suggested-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rk3x.c