From 0cfefed6576b6cf7bca89e74fdd7595ad51ed8da Mon Sep 17 00:00:00 2001 From: Vipul Kumar Date: Thu, 10 Jan 2019 11:16:29 +0530 Subject: [PATCH] usb: typec: add max_snk_mv/ma/mw MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch add max_snk_mv/ma/mw to fix the below compilation error. drivers/usb/typec/tcpci.c:707:15: error: ‘struct tcpc_config’ has no member named ‘max_snk_mv’ &tcfg->max_snk_mv) || ^~ drivers/usb/typec/tcpci.c:709:13: error: ‘struct tcpc_config’ has no member named ‘max_snk_ma’ &tcfg->max_snk_ma) || ^~ Signed-off-by: Vipul Kumar --- include/linux/usb/tcpm.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/usb/tcpm.h b/include/linux/usb/tcpm.h index cb1de58a51e3..9c24e5ab25e2 100644 --- a/include/linux/usb/tcpm.h +++ b/include/linux/usb/tcpm.h @@ -65,6 +65,9 @@ enum tcpm_transmit_type { * @nr_src_pdo: Number of entries in @src_pdo * @snk_pdo: PDO parameters sent to partner as response to * PD_CTRL_GET_SINK_CAP message + * @max_snk_mv: Maximum acceptable sink voltage in mV + * @max_snk_ma: Maximum sink current in mA + * @max_snk_mw: Maximum required sink power in mW * @nr_snk_pdo: Number of entries in @snk_pdo * @operating_snk_mw: * Required operating sink power in mW @@ -86,6 +89,10 @@ struct tcpc_config { const u32 *snk_vdo; unsigned int nr_snk_vdo; + unsigned int max_snk_mv; + unsigned int max_snk_ma; + unsigned int max_snk_mw; + unsigned int operating_snk_mw; enum typec_port_type type; -- 2.17.1