summaryrefslogtreecommitdiff
path: root/include/usb_pd_tcpm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/usb_pd_tcpm.h')
-rw-r--r--include/usb_pd_tcpm.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h
index a814c2b7af..fddcb04c3a 100644
--- a/include/usb_pd_tcpm.h
+++ b/include/usb_pd_tcpm.h
@@ -373,11 +373,10 @@ struct tcpm_drv {
* NOTE: this is most useful for PPCs that can not tell on their own
*
* @param port Type-C port number
- * @param is_sinking true for sinking, false for not
*
- * @return EC_SUCCESS, EC_ERROR_UNIMPLEMENTED or error
+ * @return true if sinking else false
*/
- int (*get_snk_ctrl)(int port, bool *sinking);
+ bool (*get_snk_ctrl)(int port);
/**
* Send SinkVBUS or DisableSinkVBUS command
@@ -394,11 +393,10 @@ struct tcpm_drv {
* NOTE: this is most useful for PPCs that can not tell on their own
*
* @param port Type-C port number
- * @param is_sourcing true for sourcing, false for not
*
- * @return EC_SUCCESS, EC_ERROR_UNIMPLEMENTED or error
+ * @return true if sourcing else false
*/
- int (*get_src_ctrl)(int port, bool *sourcing);
+ bool (*get_src_ctrl)(int port);
/**
* Send SourceVBUS or DisableSourceVBUS command