Home
last modified time | relevance | path

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

/openbmc/linux/drivers/extcon/
H A Dextcon-intel-cht-wc.c146 int ret, usbsrc, status; in cht_wc_extcon_get_charger() local
152 ret = regmap_read(ext->regmap, CHT_WC_USBSRC, &usbsrc); in cht_wc_extcon_get_charger()
158 status = usbsrc & CHT_WC_USBSRC_STS_MASK; in cht_wc_extcon_get_charger()
175 usbsrc = CHT_WC_USBSRC_TYPE_SDP << CHT_WC_USBSRC_TYPE_SHIFT; in cht_wc_extcon_get_charger()
178 usbsrc = (usbsrc & CHT_WC_USBSRC_TYPE_MASK) >> CHT_WC_USBSRC_TYPE_SHIFT; in cht_wc_extcon_get_charger()
179 switch (usbsrc) { in cht_wc_extcon_get_charger()