aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorDmitry Baryshkov <[email protected]>2024-04-11 07:49:54 +0300
committerGreg Kroah-Hartman <[email protected]>2024-04-18 16:47:24 +0200
commit76716fd5bf09725c2c6825264147f16c21e56853 (patch)
tree57449a0a5523ca68cc00be32921dbfb600022a73 /rust/helpers/helpers.c
parent24bce22d09ec8e67022aab9a888acb56fb7a996a (diff)
usb: typec: ucsi: glink: move GPIO reading into connector_status callback
To simplify the platform code move Type-C orientation handling into the connector_status callback. As it is called both during connector registration and on connector change events, duplicated code from pmic_glink_ucsi_register() can be dropped. Also this moves operations that can sleep into a worker thread, removing the only sleeping operation from pmic_glink_ucsi_notify(). Tested-by: Krishna Kurapati <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions