Re: [PATCH v4 18/20] extcon: intel-cht-wc: Refactor cht_wc_extcon_get_charger()

From: Chanwoo Choi
Date: Wed Dec 15 2021 - 21:32:24 EST


On 12/6/21 6:33 PM, Hans de Goede wrote:
> This is a preparation patch for adding support for registering
> a power_supply class device.
>
> Setting usbsrc to "CHT_WC_USBSRC_TYPE_SDP << CHT_WC_USBSRC_TYPE_SHIFT"
> will make the following switch-case return EXTCON_CHG_USB_SDP
> just as before, so there is no functional change.
>
> Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
> ---
> Changes in v3:
> - Reword the commit message
> ---
> drivers/extcon/extcon-intel-cht-wc.c | 15 ++++++++-------
> 1 file changed, 8 insertions(+), 7 deletions(-)

[snip]

Acked-by: Chanwoo Choi <cw00.choi@xxxxxxxxxxx>

--
Best Regards,
Chanwoo Choi
Samsung Electronics