summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBadhri Jagan Sridharan <badhri@google.com>2021-05-17 12:21:10 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-21 20:05:56 +0200
commitdea6f87e60d193b2b3e21f9c6d657e53617369da (patch)
treebdedc7d253e70b257799b2b7433e9913540bf9dd /include
parentd112efbe6dbf7d4c482e2a3f381fa315aabfe63b (diff)
usb: typec: tcpm: Refactor logic to enable/disable auto vbus dicharge
The logic to enable vbus auto discharge on disconnect is used in more than one place. Since this is repetitive code, moving this into its own method. Fixes: f321a02caebd ("usb: typec: tcpm: Implement enabling Auto Discharge disconnect support") Reviewed-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Badhri Jagan Sridharan <badhri@google.com> Link: https://lore.kernel.org/r/20210517192112.40934-2-badhri@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions