Home
last modified time | relevance | path

Searched refs:pwrsrc_sts (Results 1 – 1 of 1) sorted by relevance

/drivers/extcon/
Dextcon-intel-cht-wc.c117 static int cht_wc_extcon_get_id(struct cht_wc_extcon_data *ext, int pwrsrc_sts) in cht_wc_extcon_get_id() argument
119 switch ((pwrsrc_sts & CHT_WC_PWRSRC_USBID_MASK) >> CHT_WC_PWRSRC_USBID_SHIFT) { in cht_wc_extcon_get_id()
279 int ret, pwrsrc_sts, id; in cht_wc_extcon_pwrsrc_event() local
287 ret = regmap_read(ext->regmap, CHT_WC_PWRSRC_STS, &pwrsrc_sts); in cht_wc_extcon_pwrsrc_event()
293 id = cht_wc_extcon_get_id(ext, pwrsrc_sts); in cht_wc_extcon_pwrsrc_event()
306 if (!(pwrsrc_sts & CHT_WC_PWRSRC_VBUS)) { in cht_wc_extcon_pwrsrc_event()
332 else if (pwrsrc_sts & CHT_WC_PWRSRC_VBUS) in cht_wc_extcon_pwrsrc_event()
502 int pwrsrc_sts, id; in cht_wc_extcon_probe() local
580 ret = regmap_read(ext->regmap, CHT_WC_PWRSRC_STS, &pwrsrc_sts); in cht_wc_extcon_probe()
590 id = cht_wc_extcon_get_id(ext, pwrsrc_sts); in cht_wc_extcon_probe()