Fixes: 8f9439022648("staging: typec: modify parameter of tcpci_irq")
PATCH 1/1 Fixes: 8f9439022648("staging: typec: modify parameter of tcpci_irq")
From: ShuFan Lee <[email protected]>
The parameter, dev_id, of tcpci_irq should be tcpci_chip. Remove definition of TCPC_CC_STATUS_DRPRST in tcpci.h.
--- drivers/staging/typec/tcpci.c | 4 ++-- drivers/staging/typec/tcpci.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/staging/typec/tcpci.c +2 -2
@@ -451,9 +451,9 @@ irqreturn_t tcpci_irq(struct tcpci *tcpci)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 = {
drivers/staging/typec/tcpci.h +0 -1
@@ -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
Quoted 1 line · ShuFan Lee
From: ShuFan Lee <[email protected]>
Your subject is odd, that line should be below, in the signed-off-by:
area, not as the subject of the patch :(
Can you fix this up and resend?
thanks,
greg k-h
Hi Greg,
2018-03-12 19:07 GMT+08:00 Greg KH <[email protected]>:
Quoted 7 lines · ShuFan Lee
Quoted 1 line
From: ShuFan Lee <[email protected]>
Your subject is odd, that line should be below, in the signed-off-by:
area, not as the subject of the patch :(Can you fix this up and resend?
Yes.
If I understand correctly, the title should be like
staging: typec: modify parameter of tcpci_irq
and the "Fixes" tag should be put in the signed-off-by area.
Should it be in the beginning of the area:
modify drp toggling flow")
Signed-off-by: xxx
or the end of the area?
modify drp toggling flow")
Quoted 4 lines
thanks,
greg k-h
Quoted 6 lines · 李書帆
Hi Greg,
2018-03-12 19:07 GMT+08:00 Greg KH <[email protected]>:
Quoted 3 lines · ShuFan Lee
Quoted 1 line
From: ShuFan Lee <[email protected]>
Quoted 8 lines
Quoted 4 lines
Your subject is odd, that line should be below, in the signed-off-by:
area, not as the subject of the patch :(Can you fix this up and resend?
Yes.
If I understand correctly, the title should be like
staging: typec: modify parameter oftcpci_irq
and the "Fixes" tag should be put in the signed-off-by area.
Correct.
Quoted 9 lines
Should it be in the beginning of the area:
Fixes 8f9439022648("staging: typec: handle vendor defined part andmodify drp toggling flow")
Signed-off-by: xxxor the end of the area?
Signed-off-by xxxFixes 8f9439022648("staging: typec: handle vendor defined part andmodify drp toggling flow")
Either is acceptable, but usually you see the first example here.
thanks,
greg k-h