Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d287a5d authored by ShuFan Lee's avatar ShuFan Lee Committed by Greg Kroah-Hartman
Browse files

staging: typec: modify parameter of tcpci_irq



The parameter, dev_id, of tcpci_irq should be tcpci_chip.
Remove definition of TCPC_CC_STATUS_DRPRST in tcpci.h.

Fixes: 8f943902("staging: typec: handle vendor defined part and modify drp toggling flow")
Signed-off-by: default avatarShuFan Lee <shufan_lee@richtek.com>
Reviewed-by: default avatarLi Jun <jun.li@nxp.com>
Tested-by: default avatarLi Jun <jun.li@nxp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8f943902
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -451,9 +451,9 @@ EXPORT_SYMBOL_GPL(tcpci_irq);

static irqreturn_t _tcpci_irq(int irq, void *dev_id)
{
	struct tcpci *tcpci = dev_id;
	struct tcpci_chip *chip = dev_id;

	return tcpci_irq(tcpci);
	return tcpci_irq(chip->tcpci);
}

static const struct regmap_config tcpci_regmap_config = {
+0 −1
Original line number Diff line number Diff line
@@ -59,7 +59,6 @@
#define TCPC_POWER_CTRL_VCONN_ENABLE	BIT(0)

#define TCPC_CC_STATUS			0x1d
#define TCPC_CC_STATUS_DRPRST		BIT(5)
#define TCPC_CC_STATUS_TERM		BIT(4)
#define TCPC_CC_STATUS_CC2_SHIFT	2
#define TCPC_CC_STATUS_CC2_MASK		0x3