]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-cht-wc: Fix bq24190 supplier
authorHans de Goede <hdegoede@redhat.com>
Sun, 1 Jul 2018 09:48:35 +0000 (11:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Jul 2018 15:38:07 +0000 (17:38 +0200)
commitd56358097753ecfc7e1df89a0ec586dd55db3013
tree503bccff863fb8e3533fe191febf402588df8436
parent992b96ddd42e1ca57cc2ea35cfd4ef9a7026a01a
i2c-cht-wc: Fix bq24190 supplier

Commit 040a123714e9 ("typec: tcpm: Represent source supply through
power_supply") moved the code to register a power_supply representing
the device supplying power to the type-C connector, from the fusb302
code to the generic tcpm code.

This has caused the power-supply registered by the fusb302 driver,
which determines how much current the bq24190 can draw, to change name
from "fusb302-typec-source" to "tcpm-source-psy-i2c-fusb302".

Fixes: 040a123714e9 ("typec: tcpm: Represent source supply through...")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-cht-wc.c