platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices
authorHans de Goede <hdegoede@redhat.com>
Sat, 2 Sep 2017 16:20:40 +0000 (18:20 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 20 Sep 2017 13:09:36 +0000 (16:09 +0300)
commit5c003458db40cf3c89aeddd22c6e934c28b5a565
treefc739b25e6dc852b90e5e98547f35539e1d11acb
parentce6a90027c10f970f872de5db0294f9e3e969f1c
platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

At least one BIOS enumerates the max17047 both through the INT33FE ACPI
device (it is right there in the resources table) as well as through a
separate MAX17047 device.

This commit checks for the max17047 already being enumerated through
a separate MAX17047 ACPI device and if so it uses the i2c-client
instantiated for this and attaches the device-props for the max17047 to
that i2c-client.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_cht_int33fe.c