diff options
author | Li Jun <jun.li@nxp.com> | 2017-12-08 22:26:49 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | 778cde6c9db9f72b130c28e02bd75905a894da33 (patch) | |
tree | 68106640d38c9a61271fd8175a0295ff7f096497 /drivers | |
parent | b9e04f7d753bad3dc7e38cbbda502b4d45806887 (diff) |
MLK-17128-3 staging: typec: reading max_snk_mw setting from OF
It's missing while do typec related properties read, sink
needs it to check if the provided PDO can match the required
power.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/typec/tcpci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/typec/tcpci.c b/drivers/staging/typec/tcpci.c index 4a934b5a2784..1a31a5e34094 100644 --- a/drivers/staging/typec/tcpci.c +++ b/drivers/staging/typec/tcpci.c @@ -709,6 +709,8 @@ static int tcpci_parse_config(struct tcpci *tcpci) &tcfg->max_snk_mv) || device_property_read_u32(tcpci->dev, "max-snk-ma", &tcfg->max_snk_ma) || + device_property_read_u32(tcpci->dev, "max-snk-mw", + &tcfg->max_snk_mw) || device_property_read_u32(tcpci->dev, "op-snk-mw", &tcfg->operating_snk_mw)) goto snk_setting_wrong; |