Skip to content

Commit 7d287a5

Browse files
ShuFan Leegregkh
authored andcommitted
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: 8f94390("staging: typec: handle vendor defined part and modify drp toggling flow") Signed-off-by: ShuFan Lee <[email protected]> Reviewed-by: Li Jun <[email protected]> Tested-by: Li Jun <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8f94390 commit 7d287a5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

drivers/staging/typec/tcpci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,9 @@ EXPORT_SYMBOL_GPL(tcpci_irq);
451451

452452
static irqreturn_t _tcpci_irq(int irq, void *dev_id)
453453
{
454-
struct tcpci *tcpci = dev_id;
454+
struct tcpci_chip *chip = dev_id;
455455

456-
return tcpci_irq(tcpci);
456+
return tcpci_irq(chip->tcpci);
457457
}
458458

459459
static const struct regmap_config tcpci_regmap_config = {

drivers/staging/typec/tcpci.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
#define TCPC_POWER_CTRL_VCONN_ENABLE BIT(0)
6060

6161
#define TCPC_CC_STATUS 0x1d
62-
#define TCPC_CC_STATUS_DRPRST BIT(5)
6362
#define TCPC_CC_STATUS_TERM BIT(4)
6463
#define TCPC_CC_STATUS_CC2_SHIFT 2
6564
#define TCPC_CC_STATUS_CC2_MASK 0x3

0 commit comments

Comments
 (0)