platform/chrome: chromeos_laptop - rework i2c peripherals initialization
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 20 Mar 2018 22:31:32 +0000 (15:31 -0700)
committerBenson Leung <bleung@chromium.org>
Tue, 10 Apr 2018 05:39:49 +0000 (22:39 -0700)
commit28cd38f105fc30ccda7a15170cbaa977d2601272
treec4549a44d99fede5dead029341de003f7a494d4e
parentab6c5600d8caf5ee9a8a5081344f055bc80bc271
platform/chrome: chromeos_laptop - rework i2c peripherals initialization

Instead of having separate setup() functions responsible for instantiating
i2c client for each peripheral, let's generalize the behavior and use
common code for instantiating all i2c peripherals.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/chromeos_laptop.c