Skip to contentSkip to conversation

crypto: talitos - Define compatible in talitos2.h instead of talitos.c

PATCH Superseded Christophe Leroy 1 participant 1 message Mar 6, 2015 Crypto API

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 12/17 crypto: talitos - Define compatible in talitos2.h instead of talitos.c

---
 drivers/crypto/talitos.c  | 4 +---
 drivers/crypto/talitos2.h | 2 ++
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/crypto/talitos.c +1 -3
index 8b627d0..0262e75 100644
@@ -1972,9 +1972,7 @@ err_out:
 }
 
 static const struct of_device_id talitos_match[] = {
-	{
-		.compatible = "fsl,sec2.0",
-	},
+	TALITOS_OF_COMPATIBLE,
 	{},
 };
 MODULE_DEVICE_TABLE(of, talitos_match);
drivers/crypto/talitos2.h +2 -0
index 7edc563..7177088 100644
@@ -316,3 +316,5 @@ static irqreturn_t talitos_interrupt_##name(int irq, void *data)	       \
 	return (isr & (ch_done_mask | ch_err_mask) || isr_lo) ? IRQ_HANDLED :  \
 								IRQ_NONE;      \
 }
+
+#define TALITOS_OF_COMPATIBLE	{.compatible = "fsl,sec2.0",}
Signature · 1 line
2.1.0