Skip to contentSkip to conversation

staging: comedi: change CamelCase to CAPS

PATCH In review Kaaira Gupta 2 participants 4 messages Feb 19, 2020 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: comedi: change CamelCase to CAPS

fix checkpatch.pl check of 'Avoid CamelCase' by changing NI_CtrSource to NI_CTRSOURCE in all the files. Change it to CAPS because it is a MICRO

---
 drivers/staging/comedi/comedi.h               |   4 +-
 .../staging/comedi/drivers/ni_routing/README  |   4 +-
 .../ni_routing/ni_device_routes/pci-6070e.c   |  22 +-
 .../ni_routing/ni_device_routes/pci-6220.c    | 108 ++---
 .../ni_routing/ni_device_routes/pci-6221.c    | 108 ++---
 .../ni_routing/ni_device_routes/pci-6229.c    | 108 ++---
 .../ni_routing/ni_device_routes/pci-6251.c    | 108 ++---
 .../ni_routing/ni_device_routes/pci-6254.c    | 108 ++---
 .../ni_routing/ni_device_routes/pci-6259.c    | 108 ++---
 .../ni_routing/ni_device_routes/pci-6602.c    | 368 ++++++++--------
 .../ni_routing/ni_device_routes/pci-6713.c    |  22 +-
 .../ni_routing/ni_device_routes/pci-6723.c    |  22 +-
 .../ni_routing/ni_device_routes/pci-6733.c    |  22 +-
 .../ni_routing/ni_device_routes/pxi-6030e.c   |  20 +-
 .../ni_routing/ni_device_routes/pxi-6224.c    | 108 ++---
 .../ni_routing/ni_device_routes/pxi-6225.c    | 108 ++---
 .../ni_routing/ni_device_routes/pxi-6251.c    | 108 ++---
 .../ni_routing/ni_device_routes/pxi-6733.c    |  22 +-
 .../ni_routing/ni_device_routes/pxie-6251.c   | 108 ++---
 .../ni_routing/ni_device_routes/pxie-6738.c   | 408 +++++++++---------
 .../ni_routing/ni_route_values/ni_660x.c      |  64 +--
 .../ni_routing/ni_route_values/ni_eseries.c   |  22 +-
 .../ni_routing/ni_route_values/ni_mseries.c   | 104 ++---
 .../drivers/ni_routing/tools/ni_names.py      |   2 +-
 drivers/staging/comedi/drivers/ni_tio.c       |   6 +-
 .../comedi/drivers/tests/ni_routes_test.c     |   4 +-
 26 files changed, 1098 insertions(+), 1098 deletions(-)
drivers/staging/comedi/comedi.h +2 -2
index 09a940066c0e..8b101658e477 100644
@@ -1020,9 +1020,9 @@ enum i8254_mode {
 /* *** Counter/timer names : 8 counters max *** */
 #define NI_MAX_COUNTERS		8
 #define NI_COUNTER_NAMES_BASE	(NI_RTSI_BRD(-1)  + 1)
-#define NI_CtrSource(x)	      _TERM_N(NI_COUNTER_NAMES_BASE, NI_MAX_COUNTERS, x)
+#define NI_CTRSOURCE(x)	      _TERM_N(NI_COUNTER_NAMES_BASE, NI_MAX_COUNTERS, x)
 /* Gate, Aux, A,B,Z are all treated, at times as gates */
-#define NI_GATES_NAMES_BASE	(NI_CtrSource(-1) + 1)
+#define NI_GATES_NAMES_BASE	(NI_CTRSOURCE(-1) + 1)
 #define NI_CtrGate(x)		_TERM_N(NI_GATES_NAMES_BASE, NI_MAX_COUNTERS, x)
 #define NI_CtrAux(x)		_TERM_N(NI_CtrGate(-1)  + 1, NI_MAX_COUNTERS, x)
 #define NI_CtrA(x)		_TERM_N(NI_CtrAux(-1)   + 1, NI_MAX_COUNTERS, x)
drivers/staging/comedi/drivers/ni_routing/README +2 -2
index b65c4ebedbc4..04bc4d535702 100644
@@ -210,8 +210,8 @@ NI-STC with those naming conventions used here.
   PXI_Clk10
   NI_CtrOut(0)                  GPFO_0                      external ctr0out pin
   NI_CtrOut(1)                  GPFO_1                      external ctr1out pin
-  NI_CtrSource(0)
-  NI_CtrSource(1)
+  NI_CTRSOURCE(0)
+  NI_CTRSOURCE(1)
   NI_CtrGate(0)
   NI_CtrGate(1)
   NI_CtrInternalOutput(0)       G_OUT0, G0_TC               for Ctr1Source, Ctr1Gate
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6070e.c +11 -11
index f1126a0cb285..457bddba1b70 100644
@@ -55,7 +55,7 @@ struct ni_device_routes ni_pci_6070e_device_routes = {
 		{
 			.dest = NI_PFI(3),
 			.src = (int[]){
-				NI_CtrSource(1),
+				NI_CTRSOURCE(1),
 				0, /* Termination */
 			}
 		},
@@ -90,7 +90,7 @@ struct ni_device_routes ni_pci_6070e_device_routes = {
 		{
 			.dest = NI_PFI(8),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				0, /* Termination */
 			}
 		},
@@ -104,7 +104,7 @@ struct ni_device_routes ni_pci_6070e_device_routes = {
 		{
 			.dest = TRIGGER_LINE(0),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -120,7 +120,7 @@ struct ni_device_routes ni_pci_6070e_device_routes = {
 		{
 			.dest = TRIGGER_LINE(1),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -136,7 +136,7 @@ struct ni_device_routes ni_pci_6070e_device_routes = {
 		{
 			.dest = TRIGGER_LINE(2),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -152,7 +152,7 @@ struct ni_device_routes ni_pci_6070e_device_routes = {
 		{
 			.dest = TRIGGER_LINE(3),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -168,7 +168,7 @@ struct ni_device_routes ni_pci_6070e_device_routes = {
 		{
 			.dest = TRIGGER_LINE(4),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -184,7 +184,7 @@ struct ni_device_routes ni_pci_6070e_device_routes = {
 		{
 			.dest = TRIGGER_LINE(5),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -200,7 +200,7 @@ struct ni_device_routes ni_pci_6070e_device_routes = {
 		{
 			.dest = TRIGGER_LINE(6),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -221,7 +221,7 @@ struct ni_device_routes ni_pci_6070e_device_routes = {
 			}
 		},
 		{
-			.dest = NI_CtrSource(0),
+			.dest = NI_CTRSOURCE(0),
 			.src = (int[]){
 				NI_PFI(0),
 				NI_PFI(1),
@@ -249,7 +249,7 @@ struct ni_device_routes ni_pci_6070e_device_routes = {
 			}
 		},
 		{
-			.dest = NI_CtrSource(1),
+			.dest = NI_CTRSOURCE(1),
 			.src = (int[]){
 				NI_PFI(0),
 				NI_PFI(1),
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6220.c +54 -54

288 lines not on this page · raw message

drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6221.c +54 -54

288 lines not on this page · raw message

drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6229.c +54 -54

288 lines not on this page · raw message

drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6251.c +54 -54

288 lines not on this page · raw message

drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6254.c +54 -54

288 lines not on this page · raw message

drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6259.c +54 -54

288 lines not on this page · raw message

drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6602.c +184 -184

746 lines not on this page · raw message

drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6713.c +11 -11
index d378b36d2084..48bada293b13 100644
@@ -34,7 +34,7 @@ struct ni_device_routes ni_pci_6713_device_routes = {
 		{
 			.dest = NI_PFI(3),
 			.src = (int[]){
-				NI_CtrSource(1),
+				NI_CTRSOURCE(1),
 				0, /* Termination */
 			}
 		},
@@ -62,7 +62,7 @@ struct ni_device_routes ni_pci_6713_device_routes = {
 		{
 			.dest = NI_PFI(8),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				0, /* Termination */
 			}
 		},
@@ -76,7 +76,7 @@ struct ni_device_routes ni_pci_6713_device_routes = {
 		{
 			.dest = TRIGGER_LINE(0),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -88,7 +88,7 @@ struct ni_device_routes ni_pci_6713_device_routes = {
 		{
 			.dest = TRIGGER_LINE(1),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -100,7 +100,7 @@ struct ni_device_routes ni_pci_6713_device_routes = {
 		{
 			.dest = TRIGGER_LINE(2),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -112,7 +112,7 @@ struct ni_device_routes ni_pci_6713_device_routes = {
 		{
 			.dest = TRIGGER_LINE(3),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -124,7 +124,7 @@ struct ni_device_routes ni_pci_6713_device_routes = {
 		{
 			.dest = TRIGGER_LINE(4),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -136,7 +136,7 @@ struct ni_device_routes ni_pci_6713_device_routes = {
 		{
 			.dest = TRIGGER_LINE(5),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -148,7 +148,7 @@ struct ni_device_routes ni_pci_6713_device_routes = {
 		{
 			.dest = TRIGGER_LINE(6),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -165,7 +165,7 @@ struct ni_device_routes ni_pci_6713_device_routes = {
 			}
 		},
 		{
-			.dest = NI_CtrSource(0),
+			.dest = NI_CTRSOURCE(0),
 			.src = (int[]){
 				NI_PFI(0),
 				NI_PFI(1),
@@ -192,7 +192,7 @@ struct ni_device_routes ni_pci_6713_device_routes = {
 			}
 		},
 		{
-			.dest = NI_CtrSource(1),
+			.dest = NI_CTRSOURCE(1),
 			.src = (int[]){
 				NI_PFI(0),
 				NI_PFI(1),
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6723.c +11 -11
index e0cc57ab06e7..8a6271a04628 100644
@@ -34,7 +34,7 @@ struct ni_device_routes ni_pci_6723_device_routes = {
 		{
 			.dest = NI_PFI(3),
 			.src = (int[]){
-				NI_CtrSource(1),
+				NI_CTRSOURCE(1),
 				0, /* Termination */
 			}
 		},
@@ -62,7 +62,7 @@ struct ni_device_routes ni_pci_6723_device_routes = {
 		{
 			.dest = NI_PFI(8),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				0, /* Termination */
 			}
 		},
@@ -76,7 +76,7 @@ struct ni_device_routes ni_pci_6723_device_routes = {
 		{
 			.dest = TRIGGER_LINE(0),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -88,7 +88,7 @@ struct ni_device_routes ni_pci_6723_device_routes = {
 		{
 			.dest = TRIGGER_LINE(1),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -100,7 +100,7 @@ struct ni_device_routes ni_pci_6723_device_routes = {
 		{
 			.dest = TRIGGER_LINE(2),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -112,7 +112,7 @@ struct ni_device_routes ni_pci_6723_device_routes = {
 		{
 			.dest = TRIGGER_LINE(3),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -124,7 +124,7 @@ struct ni_device_routes ni_pci_6723_device_routes = {
 		{
 			.dest = TRIGGER_LINE(4),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -136,7 +136,7 @@ struct ni_device_routes ni_pci_6723_device_routes = {
 		{
 			.dest = TRIGGER_LINE(5),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -148,7 +148,7 @@ struct ni_device_routes ni_pci_6723_device_routes = {
 		{
 			.dest = TRIGGER_LINE(6),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -165,7 +165,7 @@ struct ni_device_routes ni_pci_6723_device_routes = {
 			}
 		},
 		{
-			.dest = NI_CtrSource(0),
+			.dest = NI_CTRSOURCE(0),
 			.src = (int[]){
 				NI_PFI(0),
 				NI_PFI(1),
@@ -192,7 +192,7 @@ struct ni_device_routes ni_pci_6723_device_routes = {
 			}
 		},
 		{
-			.dest = NI_CtrSource(1),
+			.dest = NI_CTRSOURCE(1),
 			.src = (int[]){
 				NI_PFI(0),
 				NI_PFI(1),
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6733.c +11 -11
index f6e1e17ab854..eebaec53794c 100644
@@ -34,7 +34,7 @@ struct ni_device_routes ni_pci_6733_device_routes = {
 		{
 			.dest = NI_PFI(3),
 			.src = (int[]){
-				NI_CtrSource(1),
+				NI_CTRSOURCE(1),
 				0, /* Termination */
 			}
 		},
@@ -62,7 +62,7 @@ struct ni_device_routes ni_pci_6733_device_routes = {
 		{
 			.dest = NI_PFI(8),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				0, /* Termination */
 			}
 		},
@@ -76,7 +76,7 @@ struct ni_device_routes ni_pci_6733_device_routes = {
 		{
 			.dest = TRIGGER_LINE(0),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -88,7 +88,7 @@ struct ni_device_routes ni_pci_6733_device_routes = {
 		{
 			.dest = TRIGGER_LINE(1),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -100,7 +100,7 @@ struct ni_device_routes ni_pci_6733_device_routes = {
 		{
 			.dest = TRIGGER_LINE(2),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -112,7 +112,7 @@ struct ni_device_routes ni_pci_6733_device_routes = {
 		{
 			.dest = TRIGGER_LINE(3),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -124,7 +124,7 @@ struct ni_device_routes ni_pci_6733_device_routes = {
 		{
 			.dest = TRIGGER_LINE(4),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -136,7 +136,7 @@ struct ni_device_routes ni_pci_6733_device_routes = {
 		{
 			.dest = TRIGGER_LINE(5),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -148,7 +148,7 @@ struct ni_device_routes ni_pci_6733_device_routes = {
 		{
 			.dest = TRIGGER_LINE(6),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -165,7 +165,7 @@ struct ni_device_routes ni_pci_6733_device_routes = {
 			}
 		},
 		{
-			.dest = NI_CtrSource(0),
+			.dest = NI_CTRSOURCE(0),
 			.src = (int[]){
 				NI_PFI(0),
 				NI_PFI(1),
@@ -192,7 +192,7 @@ struct ni_device_routes ni_pci_6733_device_routes = {
 			}
 		},
 		{
-			.dest = NI_CtrSource(1),
+			.dest = NI_CTRSOURCE(1),
 			.src = (int[]){
 				NI_PFI(0),
 				NI_PFI(1),
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxi-6030e.c +10 -10
index 9978d632117f..ba21a6dc70fe 100644
@@ -55,7 +55,7 @@ struct ni_device_routes ni_pxi_6030e_device_routes = {
 		{
 			.dest = NI_PFI(3),
 			.src = (int[]){
-				NI_CtrSource(1),
+				NI_CTRSOURCE(1),
 				0, /* Termination */
 			}
 		},
@@ -90,7 +90,7 @@ struct ni_device_routes ni_pxi_6030e_device_routes = {
 		{
 			.dest = NI_PFI(8),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				0, /* Termination */
 			}
 		},
@@ -104,7 +104,7 @@ struct ni_device_routes ni_pxi_6030e_device_routes = {
 		{
 			.dest = TRIGGER_LINE(0),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -120,7 +120,7 @@ struct ni_device_routes ni_pxi_6030e_device_routes = {
 		{
 			.dest = TRIGGER_LINE(1),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -136,7 +136,7 @@ struct ni_device_routes ni_pxi_6030e_device_routes = {
 		{
 			.dest = TRIGGER_LINE(2),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -152,7 +152,7 @@ struct ni_device_routes ni_pxi_6030e_device_routes = {
 		{
 			.dest = TRIGGER_LINE(3),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -168,7 +168,7 @@ struct ni_device_routes ni_pxi_6030e_device_routes = {
 		{
 			.dest = TRIGGER_LINE(4),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -184,7 +184,7 @@ struct ni_device_routes ni_pxi_6030e_device_routes = {
 		{
 			.dest = TRIGGER_LINE(5),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),
@@ -205,7 +205,7 @@ struct ni_device_routes ni_pxi_6030e_device_routes = {
 			}
 		},
 		{
-			.dest = NI_CtrSource(0),
+			.dest = NI_CTRSOURCE(0),
 			.src = (int[]){
 				NI_PFI(0),
 				NI_PFI(1),
@@ -232,7 +232,7 @@ struct ni_device_routes ni_pxi_6030e_device_routes = {
 			}
 		},
 		{
-			.dest = NI_CtrSource(1),
+			.dest = NI_CTRSOURCE(1),
 			.src = (int[]){
 				NI_PFI(0),
 				NI_PFI(1),
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxi-6224.c +54 -54

73 lines not on this page · raw message

drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxi-6225.c +54 -54

108 lines not on this page · raw message

drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxi-6251.c +54 -54

108 lines not on this page · raw message

drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxi-6733.c +11 -11
index 27da4433fc4a..455f92f344df 100644

Lines of this file are not shown. View the raw message.

drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxie-6251.c +54 -54

108 lines not on this page · raw message

drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxie-6738.c +204 -204

408 lines not on this page · raw message

drivers/staging/comedi/drivers/ni_routing/ni_route_values/ni_660x.c +32 -32

64 lines not on this page · raw message

drivers/staging/comedi/drivers/ni_routing/ni_route_values/ni_eseries.c +11 -11
index d1ab3c9ce585..c88fa1b5826e 100644

Lines of this file are not shown. View the raw message.

drivers/staging/comedi/drivers/ni_routing/ni_route_values/ni_mseries.c +52 -52

104 lines not on this page · raw message

drivers/staging/comedi/drivers/ni_routing/tools/ni_names.py +1 -1
index 5f9b825968b1..276fec507dba 100644

Lines of this file are not shown. View the raw message.

drivers/staging/comedi/drivers/ni_tio.c +3 -3
index b264db32a411..6325d32b99e3 100644

Lines of this file are not shown. View the raw message.

drivers/staging/comedi/drivers/tests/ni_routes_test.c +2 -2
index f809051820ac..52df4b7c8d52 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.17.1

Part of the diff is not shown here. View the raw message.

#1 lore raw
Quoted 2 lines · Kaaira Gupta

fix checkpatch.pl check of 'Avoid CamelCase' by changing NI_CtrSource to NI_CTRSOURCE in all the files. Change it to CAPS because it is a MICRO

What is a "MICRO"?

Quoted 1 line

Are you sure this is ok? I think this comes directly from a spec sheet so changing it might not be good.

as proof:

drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6070e.c struct ni_device_routes ni_pci_6070e_device_routes = { · line 110

Quoted 9 lines
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6070e.c +1 -1
@@ -104,7 +104,7 @@ struct ni_device_routes ni_pci_6070e_device_routes = {
 		{
 			.dest = TRIGGER_LINE(0),
 			.src = (int[]){
-				NI_CtrSource(0),
+				NI_CTRSOURCE(0),
 				NI_CtrGate(0),
 				NI_CtrInternalOutput(0),
 				NI_CtrOut(0),

Looks like all of these are CamelCase, why are you changing only one? They all should be the same, and odds are, how they are today is fine, right?

Look at the git history of these files to be sure.

thanks,

greg k-h

#2 lore raw
In reply to Kaaira Gupta
Quoted 7 lines · Kaaira Gupta

fix checkpatch.pl check of 'Avoid CamelCase' by changing NI_CtrSource to NI_CTRSOURCE in all the files. Change it to CAPS because it is a MICRO

---
 drivers/staging/comedi/comedi.h               |   4 +-
 .../staging/comedi/drivers/ni_routing/README  |   4 +-

As proof of what I said in my previous email, see the changelog message for this README file, and read it to see whre the names came from.

thanks,

greg k-h

#3 lore raw
Quoted 11 lines · Greg Kroah-Hartman
Quoted 7 lines · Kaaira Gupta

fix checkpatch.pl check of 'Avoid CamelCase' by changing NI_CtrSource to NI_CTRSOURCE in all the files. Change it to CAPS because it is a MICRO

---
 drivers/staging/comedi/comedi.h               |   4 +-
 .../staging/comedi/drivers/ni_routing/README  |   4 +-

As proof of what I said in my previous email, see the changelog message for this README file, and read it to see whre the names came from.

Sorry, a typo, it was MACRO.
Again, really sorry for the comfusion. I should have gone through the README well.

Thanks!

Quoted 4 lines

thanks,

greg k-h