platform/x86: intel_cht_int33fe: Set supplied-from property on max17047 dev
authorHans de Goede <hdegoede@redhat.com>
Fri, 26 May 2017 10:53:48 +0000 (12:53 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 31 May 2017 10:21:00 +0000 (13:21 +0300)
commit251ebd0334835b7e8613067fd063d38c1eaddebd
treed442fe6cee173c25809ba1d13714bdfa8b7506da
parent6bee1af9dcaa05c2b9289ec26ed121039dfea251
platform/x86: intel_cht_int33fe: Set supplied-from property on max17047 dev

Devices with the intel_cht_int33fe ACPI device use a max17047 fuel-gauge
combined with a bq24272i charger, in order for the fuel-gauge driver to
correctly display charging / discharging status it needs to know which
charger is supplying the battery.

This commit sets the supplied-from device property to the name of the
bq24272i charger for this.

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