linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] mtd: rawnand: vf610_nfc: align IRQ bit naming
@ 2018-08-06  9:29 Stefan Agner
  2018-08-06  9:29 ` [PATCH 2/3] mtd: rawnand: vf610_nfc: explicitly disable interrupts first Stefan Agner
  2018-08-06  9:29 ` [PATCH 3/3] mtd: rawnand: vf610_nfc: handle only idle interrupts Stefan Agner
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Agner @ 2018-08-06  9:29 UTC (permalink / raw)
  To: boris.brezillon, miquel.raynal
  Cc: computersforpeace, dwmw2, marek.vasut, richard, linux-mtd,
	linux-kernel, Stefan Agner

Rename the IRQ DONE clear bit to align with other IRQ bits.

Signed-off-by: Stefan Agner <stefan@agner.ch>
---
 drivers/mtd/nand/raw/vf610_nfc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/raw/vf610_nfc.c b/drivers/mtd/nand/raw/vf610_nfc.c
index d5a22fc96878..740a91c5c86e 100644
--- a/drivers/mtd/nand/raw/vf610_nfc.c
+++ b/drivers/mtd/nand/raw/vf610_nfc.c
@@ -132,7 +132,7 @@
 /* NFC_IRQ_STATUS Field */
 #define IDLE_IRQ_BIT				BIT(29)
 #define IDLE_EN_BIT				BIT(20)
-#define CMD_DONE_CLEAR_BIT			BIT(18)
+#define DONE_CLEAR_BIT				BIT(18)
 #define IDLE_CLEAR_BIT				BIT(17)
 
 /*
@@ -290,7 +290,7 @@ static inline void vf610_nfc_clear_status(struct vf610_nfc *nfc)
 {
 	u32 tmp = vf610_nfc_read(nfc, NFC_IRQ_STATUS);
 
-	tmp |= CMD_DONE_CLEAR_BIT | IDLE_CLEAR_BIT;
+	tmp |= DONE_CLEAR_BIT | IDLE_CLEAR_BIT;
 	vf610_nfc_write(nfc, NFC_IRQ_STATUS, tmp);
 }
 
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-08  9:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-06  9:29 [PATCH 1/3] mtd: rawnand: vf610_nfc: align IRQ bit naming Stefan Agner
2018-08-06  9:29 ` [PATCH 2/3] mtd: rawnand: vf610_nfc: explicitly disable interrupts first Stefan Agner
2018-08-08  9:54   ` Miquel Raynal
2018-08-06  9:29 ` [PATCH 3/3] mtd: rawnand: vf610_nfc: handle only idle interrupts Stefan Agner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).