linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Drivers: comedi: drivers: ni_routing: ni_device_routes: pci-6070e.c Lindented
@ 2021-07-23 12:27 Artem Baxtiarov
  2021-07-23 13:18 ` Greg KH
  2021-07-23 13:31 ` Ian Abbott
  0 siblings, 2 replies; 3+ messages in thread
From: Artem Baxtiarov @ 2021-07-23 12:27 UTC (permalink / raw)
  To: abbotti, hsweeten, gregkh; +Cc: linux-kernel

I found "Lindent" item in drivers/comedi/TODO.
I used scripts/Lindent to indent
drivers/comedi/drivers/ni_routing/ni_device_routes/pci-6070e.c

Signed-off-by: Artem Baxtiarov <baxtiarovartem@gmail.com>
---
 .../ni_routing/ni_device_routes/pci-6070e.c   | 1227 +++++++++--------
 1 file changed, 621 insertions(+), 606 deletions(-)

diff --git a/drivers/comedi/drivers/ni_routing/ni_device_routes/pci-6070e.c b/drivers/comedi/drivers/ni_routing/ni_device_routes/pci-6070e.c
index 7d3064c92643..4d3d9534a550 100644
--- a/drivers/comedi/drivers/ni_routing/ni_device_routes/pci-6070e.c
+++ b/drivers/comedi/drivers/ni_routing/ni_device_routes/pci-6070e.c
@@ -29,610 +29,625 @@
 
 struct ni_device_routes ni_pci_6070e_device_routes = {
 	.device = "pci-6070e",
-	.routes = (struct ni_route_set[]){
-		{
-			.dest = NI_PFI(0),
-			.src = (int[]){
-				NI_AI_StartTrigger,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_PFI(1),
-			.src = (int[]){
-				NI_AI_ReferenceTrigger,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_PFI(2),
-			.src = (int[]){
-				NI_AI_ConvertClock,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_PFI(3),
-			.src = (int[]){
-				NI_CtrSource(1),
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_PFI(4),
-			.src = (int[]){
-				NI_CtrGate(1),
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_PFI(5),
-			.src = (int[]){
-				NI_AO_SampleClock,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_PFI(6),
-			.src = (int[]){
-				NI_AO_StartTrigger,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_PFI(7),
-			.src = (int[]){
-				NI_AI_SampleClock,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_PFI(8),
-			.src = (int[]){
-				NI_CtrSource(0),
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_PFI(9),
-			.src = (int[]){
-				NI_CtrGate(0),
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = TRIGGER_LINE(0),
-			.src = (int[]){
-				NI_CtrSource(0),
-				NI_CtrGate(0),
-				NI_CtrInternalOutput(0),
-				NI_CtrOut(0),
-				NI_AI_SampleClock,
-				NI_AI_StartTrigger,
-				NI_AI_ReferenceTrigger,
-				NI_AI_ConvertClock,
-				NI_AO_SampleClock,
-				NI_AO_StartTrigger,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = TRIGGER_LINE(1),
-			.src = (int[]){
-				NI_CtrSource(0),
-				NI_CtrGate(0),
-				NI_CtrInternalOutput(0),
-				NI_CtrOut(0),
-				NI_AI_SampleClock,
-				NI_AI_StartTrigger,
-				NI_AI_ReferenceTrigger,
-				NI_AI_ConvertClock,
-				NI_AO_SampleClock,
-				NI_AO_StartTrigger,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = TRIGGER_LINE(2),
-			.src = (int[]){
-				NI_CtrSource(0),
-				NI_CtrGate(0),
-				NI_CtrInternalOutput(0),
-				NI_CtrOut(0),
-				NI_AI_SampleClock,
-				NI_AI_StartTrigger,
-				NI_AI_ReferenceTrigger,
-				NI_AI_ConvertClock,
-				NI_AO_SampleClock,
-				NI_AO_StartTrigger,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = TRIGGER_LINE(3),
-			.src = (int[]){
-				NI_CtrSource(0),
-				NI_CtrGate(0),
-				NI_CtrInternalOutput(0),
-				NI_CtrOut(0),
-				NI_AI_SampleClock,
-				NI_AI_StartTrigger,
-				NI_AI_ReferenceTrigger,
-				NI_AI_ConvertClock,
-				NI_AO_SampleClock,
-				NI_AO_StartTrigger,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = TRIGGER_LINE(4),
-			.src = (int[]){
-				NI_CtrSource(0),
-				NI_CtrGate(0),
-				NI_CtrInternalOutput(0),
-				NI_CtrOut(0),
-				NI_AI_SampleClock,
-				NI_AI_StartTrigger,
-				NI_AI_ReferenceTrigger,
-				NI_AI_ConvertClock,
-				NI_AO_SampleClock,
-				NI_AO_StartTrigger,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = TRIGGER_LINE(5),
-			.src = (int[]){
-				NI_CtrSource(0),
-				NI_CtrGate(0),
-				NI_CtrInternalOutput(0),
-				NI_CtrOut(0),
-				NI_AI_SampleClock,
-				NI_AI_StartTrigger,
-				NI_AI_ReferenceTrigger,
-				NI_AI_ConvertClock,
-				NI_AO_SampleClock,
-				NI_AO_StartTrigger,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = TRIGGER_LINE(6),
-			.src = (int[]){
-				NI_CtrSource(0),
-				NI_CtrGate(0),
-				NI_CtrInternalOutput(0),
-				NI_CtrOut(0),
-				NI_AI_SampleClock,
-				NI_AI_StartTrigger,
-				NI_AI_ReferenceTrigger,
-				NI_AI_ConvertClock,
-				NI_AO_SampleClock,
-				NI_AO_StartTrigger,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = TRIGGER_LINE(7),
-			.src = (int[]){
-				NI_20MHzTimebase,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_CtrSource(0),
-			.src = (int[]){
-				NI_PFI(0),
-				NI_PFI(1),
-				NI_PFI(2),
-				NI_PFI(3),
-				NI_PFI(4),
-				NI_PFI(5),
-				NI_PFI(6),
-				NI_PFI(7),
-				NI_PFI(8),
-				NI_PFI(9),
-				TRIGGER_LINE(0),
-				TRIGGER_LINE(1),
-				TRIGGER_LINE(2),
-				TRIGGER_LINE(3),
-				TRIGGER_LINE(4),
-				TRIGGER_LINE(5),
-				TRIGGER_LINE(6),
-				TRIGGER_LINE(7),
-				NI_MasterTimebase,
-				NI_20MHzTimebase,
-				NI_100kHzTimebase,
-				NI_AnalogComparisonEvent,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_CtrSource(1),
-			.src = (int[]){
-				NI_PFI(0),
-				NI_PFI(1),
-				NI_PFI(2),
-				NI_PFI(3),
-				NI_PFI(4),
-				NI_PFI(5),
-				NI_PFI(6),
-				NI_PFI(7),
-				NI_PFI(8),
-				NI_PFI(9),
-				TRIGGER_LINE(0),
-				TRIGGER_LINE(1),
-				TRIGGER_LINE(2),
-				TRIGGER_LINE(3),
-				TRIGGER_LINE(4),
-				TRIGGER_LINE(5),
-				TRIGGER_LINE(6),
-				TRIGGER_LINE(7),
-				NI_MasterTimebase,
-				NI_20MHzTimebase,
-				NI_100kHzTimebase,
-				NI_AnalogComparisonEvent,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_CtrGate(0),
-			.src = (int[]){
-				NI_PFI(0),
-				NI_PFI(1),
-				NI_PFI(2),
-				NI_PFI(3),
-				NI_PFI(4),
-				NI_PFI(5),
-				NI_PFI(6),
-				NI_PFI(7),
-				NI_PFI(8),
-				NI_PFI(9),
-				TRIGGER_LINE(0),
-				TRIGGER_LINE(1),
-				TRIGGER_LINE(2),
-				TRIGGER_LINE(3),
-				TRIGGER_LINE(4),
-				TRIGGER_LINE(5),
-				TRIGGER_LINE(6),
-				NI_CtrInternalOutput(1),
-				NI_AI_StartTrigger,
-				NI_AI_ReferenceTrigger,
-				NI_AnalogComparisonEvent,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_CtrGate(1),
-			.src = (int[]){
-				NI_PFI(0),
-				NI_PFI(1),
-				NI_PFI(2),
-				NI_PFI(3),
-				NI_PFI(4),
-				NI_PFI(5),
-				NI_PFI(6),
-				NI_PFI(7),
-				NI_PFI(8),
-				NI_PFI(9),
-				TRIGGER_LINE(0),
-				TRIGGER_LINE(1),
-				TRIGGER_LINE(2),
-				TRIGGER_LINE(3),
-				TRIGGER_LINE(4),
-				TRIGGER_LINE(5),
-				TRIGGER_LINE(6),
-				NI_CtrInternalOutput(0),
-				NI_AI_StartTrigger,
-				NI_AI_ReferenceTrigger,
-				NI_AnalogComparisonEvent,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_CtrOut(0),
-			.src = (int[]){
-				TRIGGER_LINE(0),
-				TRIGGER_LINE(1),
-				TRIGGER_LINE(2),
-				TRIGGER_LINE(3),
-				TRIGGER_LINE(4),
-				TRIGGER_LINE(5),
-				TRIGGER_LINE(6),
-				NI_CtrInternalOutput(0),
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_CtrOut(1),
-			.src = (int[]){
-				NI_CtrInternalOutput(1),
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_AI_SampleClock,
-			.src = (int[]){
-				NI_PFI(0),
-				NI_PFI(1),
-				NI_PFI(2),
-				NI_PFI(3),
-				NI_PFI(4),
-				NI_PFI(5),
-				NI_PFI(6),
-				NI_PFI(7),
-				NI_PFI(8),
-				NI_PFI(9),
-				TRIGGER_LINE(0),
-				TRIGGER_LINE(1),
-				TRIGGER_LINE(2),
-				TRIGGER_LINE(3),
-				TRIGGER_LINE(4),
-				TRIGGER_LINE(5),
-				TRIGGER_LINE(6),
-				NI_CtrInternalOutput(0),
-				NI_AI_SampleClockTimebase,
-				NI_AnalogComparisonEvent,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_AI_SampleClockTimebase,
-			.src = (int[]){
-				NI_PFI(0),
-				NI_PFI(1),
-				NI_PFI(2),
-				NI_PFI(3),
-				NI_PFI(4),
-				NI_PFI(5),
-				NI_PFI(6),
-				NI_PFI(7),
-				NI_PFI(8),
-				NI_PFI(9),
-				TRIGGER_LINE(0),
-				TRIGGER_LINE(1),
-				TRIGGER_LINE(2),
-				TRIGGER_LINE(3),
-				TRIGGER_LINE(4),
-				TRIGGER_LINE(5),
-				TRIGGER_LINE(6),
-				TRIGGER_LINE(7),
-				NI_MasterTimebase,
-				NI_20MHzTimebase,
-				NI_100kHzTimebase,
-				NI_AnalogComparisonEvent,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_AI_StartTrigger,
-			.src = (int[]){
-				NI_PFI(0),
-				NI_PFI(1),
-				NI_PFI(2),
-				NI_PFI(3),
-				NI_PFI(4),
-				NI_PFI(5),
-				NI_PFI(6),
-				NI_PFI(7),
-				NI_PFI(8),
-				NI_PFI(9),
-				TRIGGER_LINE(0),
-				TRIGGER_LINE(1),
-				TRIGGER_LINE(2),
-				TRIGGER_LINE(3),
-				TRIGGER_LINE(4),
-				TRIGGER_LINE(5),
-				TRIGGER_LINE(6),
-				NI_CtrInternalOutput(0),
-				NI_AnalogComparisonEvent,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_AI_ReferenceTrigger,
-			.src = (int[]){
-				NI_PFI(0),
-				NI_PFI(1),
-				NI_PFI(2),
-				NI_PFI(3),
-				NI_PFI(4),
-				NI_PFI(5),
-				NI_PFI(6),
-				NI_PFI(7),
-				NI_PFI(8),
-				NI_PFI(9),
-				TRIGGER_LINE(0),
-				TRIGGER_LINE(1),
-				TRIGGER_LINE(2),
-				TRIGGER_LINE(3),
-				TRIGGER_LINE(4),
-				TRIGGER_LINE(5),
-				TRIGGER_LINE(6),
-				NI_AnalogComparisonEvent,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_AI_ConvertClock,
-			.src = (int[]){
-				NI_PFI(0),
-				NI_PFI(1),
-				NI_PFI(2),
-				NI_PFI(3),
-				NI_PFI(4),
-				NI_PFI(5),
-				NI_PFI(6),
-				NI_PFI(7),
-				NI_PFI(8),
-				NI_PFI(9),
-				TRIGGER_LINE(0),
-				TRIGGER_LINE(1),
-				TRIGGER_LINE(2),
-				TRIGGER_LINE(3),
-				TRIGGER_LINE(4),
-				TRIGGER_LINE(5),
-				TRIGGER_LINE(6),
-				NI_CtrInternalOutput(0),
-				NI_AI_ConvertClockTimebase,
-				NI_AnalogComparisonEvent,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_AI_ConvertClockTimebase,
-			.src = (int[]){
-				TRIGGER_LINE(7),
-				NI_AI_SampleClockTimebase,
-				NI_MasterTimebase,
-				NI_20MHzTimebase,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_AI_PauseTrigger,
-			.src = (int[]){
-				NI_PFI(0),
-				NI_PFI(1),
-				NI_PFI(2),
-				NI_PFI(3),
-				NI_PFI(4),
-				NI_PFI(5),
-				NI_PFI(6),
-				NI_PFI(7),
-				NI_PFI(8),
-				NI_PFI(9),
-				TRIGGER_LINE(0),
-				TRIGGER_LINE(1),
-				TRIGGER_LINE(2),
-				TRIGGER_LINE(3),
-				TRIGGER_LINE(4),
-				TRIGGER_LINE(5),
-				TRIGGER_LINE(6),
-				NI_AnalogComparisonEvent,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_AI_HoldComplete,
-			.src = (int[]){
-				NI_AI_HoldCompleteEvent,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_AO_SampleClock,
-			.src = (int[]){
-				NI_PFI(0),
-				NI_PFI(1),
-				NI_PFI(2),
-				NI_PFI(3),
-				NI_PFI(4),
-				NI_PFI(5),
-				NI_PFI(6),
-				NI_PFI(7),
-				NI_PFI(8),
-				NI_PFI(9),
-				TRIGGER_LINE(0),
-				TRIGGER_LINE(1),
-				TRIGGER_LINE(2),
-				TRIGGER_LINE(3),
-				TRIGGER_LINE(4),
-				TRIGGER_LINE(5),
-				TRIGGER_LINE(6),
-				NI_CtrInternalOutput(1),
-				NI_AO_SampleClockTimebase,
-				NI_AnalogComparisonEvent,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_AO_SampleClockTimebase,
-			.src = (int[]){
-				NI_PFI(0),
-				NI_PFI(1),
-				NI_PFI(2),
-				NI_PFI(3),
-				NI_PFI(4),
-				NI_PFI(5),
-				NI_PFI(6),
-				NI_PFI(7),
-				NI_PFI(8),
-				NI_PFI(9),
-				TRIGGER_LINE(0),
-				TRIGGER_LINE(1),
-				TRIGGER_LINE(2),
-				TRIGGER_LINE(3),
-				TRIGGER_LINE(4),
-				TRIGGER_LINE(5),
-				TRIGGER_LINE(6),
-				TRIGGER_LINE(7),
-				NI_MasterTimebase,
-				NI_20MHzTimebase,
-				NI_100kHzTimebase,
-				NI_AnalogComparisonEvent,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_AO_StartTrigger,
-			.src = (int[]){
-				NI_PFI(0),
-				NI_PFI(1),
-				NI_PFI(2),
-				NI_PFI(3),
-				NI_PFI(4),
-				NI_PFI(5),
-				NI_PFI(6),
-				NI_PFI(7),
-				NI_PFI(8),
-				NI_PFI(9),
-				TRIGGER_LINE(0),
-				TRIGGER_LINE(1),
-				TRIGGER_LINE(2),
-				TRIGGER_LINE(3),
-				TRIGGER_LINE(4),
-				TRIGGER_LINE(5),
-				TRIGGER_LINE(6),
-				NI_AI_StartTrigger,
-				NI_AnalogComparisonEvent,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_AO_PauseTrigger,
-			.src = (int[]){
-				NI_PFI(0),
-				NI_PFI(1),
-				NI_PFI(2),
-				NI_PFI(3),
-				NI_PFI(4),
-				NI_PFI(5),
-				NI_PFI(6),
-				NI_PFI(7),
-				NI_PFI(8),
-				NI_PFI(9),
-				TRIGGER_LINE(0),
-				TRIGGER_LINE(1),
-				TRIGGER_LINE(2),
-				TRIGGER_LINE(3),
-				TRIGGER_LINE(4),
-				TRIGGER_LINE(5),
-				TRIGGER_LINE(6),
-				NI_AnalogComparisonEvent,
-				0, /* Termination */
-			}
-		},
-		{
-			.dest = NI_MasterTimebase,
-			.src = (int[]){
-				TRIGGER_LINE(7),
-				NI_20MHzTimebase,
-				0, /* Termination */
-			}
-		},
-		{ /* Termination of list */
-			.dest = 0,
-		},
-	},
+	.routes = (struct ni_route_set[]) {
+					{
+					    .dest = NI_PFI(0),
+					    .src = (int[]) {
+							    NI_AI_StartTrigger,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_PFI(1),
+					    .src = (int[]) {
+							    NI_AI_ReferenceTrigger,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_PFI(2),
+					    .src = (int[]) {
+							    NI_AI_ConvertClock,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_PFI(3),
+					    .src = (int[]) {
+							    NI_CtrSource(1),
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_PFI(4),
+					    .src = (int[]) {
+							    NI_CtrGate(1),
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_PFI(5),
+					    .src = (int[]) {
+							    NI_AO_SampleClock,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_PFI(6),
+					    .src = (int[]) {
+							    NI_AO_StartTrigger,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_PFI(7),
+					    .src = (int[]) {
+							    NI_AI_SampleClock,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_PFI(8),
+					    .src = (int[]) {
+							    NI_CtrSource(0),
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_PFI(9),
+					    .src = (int[]) {
+							    NI_CtrGate(0),
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = TRIGGER_LINE(0),
+					    .src = (int[]) {
+							    NI_CtrSource(0),
+							    NI_CtrGate(0),
+							    NI_CtrInternalOutput
+							    (0),
+							    NI_CtrOut(0),
+							    NI_AI_SampleClock,
+							    NI_AI_StartTrigger,
+							    NI_AI_ReferenceTrigger,
+							    NI_AI_ConvertClock,
+							    NI_AO_SampleClock,
+							    NI_AO_StartTrigger,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = TRIGGER_LINE(1),
+					    .src = (int[]) {
+							    NI_CtrSource(0),
+							    NI_CtrGate(0),
+							    NI_CtrInternalOutput
+							    (0),
+							    NI_CtrOut(0),
+							    NI_AI_SampleClock,
+							    NI_AI_StartTrigger,
+							    NI_AI_ReferenceTrigger,
+							    NI_AI_ConvertClock,
+							    NI_AO_SampleClock,
+							    NI_AO_StartTrigger,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = TRIGGER_LINE(2),
+					    .src = (int[]) {
+							    NI_CtrSource(0),
+							    NI_CtrGate(0),
+							    NI_CtrInternalOutput
+							    (0),
+							    NI_CtrOut(0),
+							    NI_AI_SampleClock,
+							    NI_AI_StartTrigger,
+							    NI_AI_ReferenceTrigger,
+							    NI_AI_ConvertClock,
+							    NI_AO_SampleClock,
+							    NI_AO_StartTrigger,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = TRIGGER_LINE(3),
+					    .src = (int[]) {
+							    NI_CtrSource(0),
+							    NI_CtrGate(0),
+							    NI_CtrInternalOutput
+							    (0),
+							    NI_CtrOut(0),
+							    NI_AI_SampleClock,
+							    NI_AI_StartTrigger,
+							    NI_AI_ReferenceTrigger,
+							    NI_AI_ConvertClock,
+							    NI_AO_SampleClock,
+							    NI_AO_StartTrigger,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = TRIGGER_LINE(4),
+					    .src = (int[]) {
+							    NI_CtrSource(0),
+							    NI_CtrGate(0),
+							    NI_CtrInternalOutput
+							    (0),
+							    NI_CtrOut(0),
+							    NI_AI_SampleClock,
+							    NI_AI_StartTrigger,
+							    NI_AI_ReferenceTrigger,
+							    NI_AI_ConvertClock,
+							    NI_AO_SampleClock,
+							    NI_AO_StartTrigger,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = TRIGGER_LINE(5),
+					    .src = (int[]) {
+							    NI_CtrSource(0),
+							    NI_CtrGate(0),
+							    NI_CtrInternalOutput
+							    (0),
+							    NI_CtrOut(0),
+							    NI_AI_SampleClock,
+							    NI_AI_StartTrigger,
+							    NI_AI_ReferenceTrigger,
+							    NI_AI_ConvertClock,
+							    NI_AO_SampleClock,
+							    NI_AO_StartTrigger,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = TRIGGER_LINE(6),
+					    .src = (int[]) {
+							    NI_CtrSource(0),
+							    NI_CtrGate(0),
+							    NI_CtrInternalOutput
+							    (0),
+							    NI_CtrOut(0),
+							    NI_AI_SampleClock,
+							    NI_AI_StartTrigger,
+							    NI_AI_ReferenceTrigger,
+							    NI_AI_ConvertClock,
+							    NI_AO_SampleClock,
+							    NI_AO_StartTrigger,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = TRIGGER_LINE(7),
+					    .src = (int[]) {
+							    NI_20MHzTimebase,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_CtrSource(0),
+					    .src = (int[]) {
+							    NI_PFI(0),
+							    NI_PFI(1),
+							    NI_PFI(2),
+							    NI_PFI(3),
+							    NI_PFI(4),
+							    NI_PFI(5),
+							    NI_PFI(6),
+							    NI_PFI(7),
+							    NI_PFI(8),
+							    NI_PFI(9),
+							    TRIGGER_LINE(0),
+							    TRIGGER_LINE(1),
+							    TRIGGER_LINE(2),
+							    TRIGGER_LINE(3),
+							    TRIGGER_LINE(4),
+							    TRIGGER_LINE(5),
+							    TRIGGER_LINE(6),
+							    TRIGGER_LINE(7),
+							    NI_MasterTimebase,
+							    NI_20MHzTimebase,
+							    NI_100kHzTimebase,
+							    NI_AnalogComparisonEvent,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_CtrSource(1),
+					    .src = (int[]) {
+							    NI_PFI(0),
+							    NI_PFI(1),
+							    NI_PFI(2),
+							    NI_PFI(3),
+							    NI_PFI(4),
+							    NI_PFI(5),
+							    NI_PFI(6),
+							    NI_PFI(7),
+							    NI_PFI(8),
+							    NI_PFI(9),
+							    TRIGGER_LINE(0),
+							    TRIGGER_LINE(1),
+							    TRIGGER_LINE(2),
+							    TRIGGER_LINE(3),
+							    TRIGGER_LINE(4),
+							    TRIGGER_LINE(5),
+							    TRIGGER_LINE(6),
+							    TRIGGER_LINE(7),
+							    NI_MasterTimebase,
+							    NI_20MHzTimebase,
+							    NI_100kHzTimebase,
+							    NI_AnalogComparisonEvent,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_CtrGate(0),
+					    .src = (int[]) {
+							    NI_PFI(0),
+							    NI_PFI(1),
+							    NI_PFI(2),
+							    NI_PFI(3),
+							    NI_PFI(4),
+							    NI_PFI(5),
+							    NI_PFI(6),
+							    NI_PFI(7),
+							    NI_PFI(8),
+							    NI_PFI(9),
+							    TRIGGER_LINE(0),
+							    TRIGGER_LINE(1),
+							    TRIGGER_LINE(2),
+							    TRIGGER_LINE(3),
+							    TRIGGER_LINE(4),
+							    TRIGGER_LINE(5),
+							    TRIGGER_LINE(6),
+							    NI_CtrInternalOutput
+							    (1),
+							    NI_AI_StartTrigger,
+							    NI_AI_ReferenceTrigger,
+							    NI_AnalogComparisonEvent,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_CtrGate(1),
+					    .src = (int[]) {
+							    NI_PFI(0),
+							    NI_PFI(1),
+							    NI_PFI(2),
+							    NI_PFI(3),
+							    NI_PFI(4),
+							    NI_PFI(5),
+							    NI_PFI(6),
+							    NI_PFI(7),
+							    NI_PFI(8),
+							    NI_PFI(9),
+							    TRIGGER_LINE(0),
+							    TRIGGER_LINE(1),
+							    TRIGGER_LINE(2),
+							    TRIGGER_LINE(3),
+							    TRIGGER_LINE(4),
+							    TRIGGER_LINE(5),
+							    TRIGGER_LINE(6),
+							    NI_CtrInternalOutput
+							    (0),
+							    NI_AI_StartTrigger,
+							    NI_AI_ReferenceTrigger,
+							    NI_AnalogComparisonEvent,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_CtrOut(0),
+					    .src = (int[]) {
+							    TRIGGER_LINE(0),
+							    TRIGGER_LINE(1),
+							    TRIGGER_LINE(2),
+							    TRIGGER_LINE(3),
+							    TRIGGER_LINE(4),
+							    TRIGGER_LINE(5),
+							    TRIGGER_LINE(6),
+							    NI_CtrInternalOutput
+							    (0),
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_CtrOut(1),
+					    .src = (int[]) {
+							    NI_CtrInternalOutput
+							    (1),
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_AI_SampleClock,
+					    .src = (int[]) {
+							    NI_PFI(0),
+							    NI_PFI(1),
+							    NI_PFI(2),
+							    NI_PFI(3),
+							    NI_PFI(4),
+							    NI_PFI(5),
+							    NI_PFI(6),
+							    NI_PFI(7),
+							    NI_PFI(8),
+							    NI_PFI(9),
+							    TRIGGER_LINE(0),
+							    TRIGGER_LINE(1),
+							    TRIGGER_LINE(2),
+							    TRIGGER_LINE(3),
+							    TRIGGER_LINE(4),
+							    TRIGGER_LINE(5),
+							    TRIGGER_LINE(6),
+							    NI_CtrInternalOutput
+							    (0),
+							    NI_AI_SampleClockTimebase,
+							    NI_AnalogComparisonEvent,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_AI_SampleClockTimebase,
+					    .src = (int[]) {
+							    NI_PFI(0),
+							    NI_PFI(1),
+							    NI_PFI(2),
+							    NI_PFI(3),
+							    NI_PFI(4),
+							    NI_PFI(5),
+							    NI_PFI(6),
+							    NI_PFI(7),
+							    NI_PFI(8),
+							    NI_PFI(9),
+							    TRIGGER_LINE(0),
+							    TRIGGER_LINE(1),
+							    TRIGGER_LINE(2),
+							    TRIGGER_LINE(3),
+							    TRIGGER_LINE(4),
+							    TRIGGER_LINE(5),
+							    TRIGGER_LINE(6),
+							    TRIGGER_LINE(7),
+							    NI_MasterTimebase,
+							    NI_20MHzTimebase,
+							    NI_100kHzTimebase,
+							    NI_AnalogComparisonEvent,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_AI_StartTrigger,
+					    .src = (int[]) {
+							    NI_PFI(0),
+							    NI_PFI(1),
+							    NI_PFI(2),
+							    NI_PFI(3),
+							    NI_PFI(4),
+							    NI_PFI(5),
+							    NI_PFI(6),
+							    NI_PFI(7),
+							    NI_PFI(8),
+							    NI_PFI(9),
+							    TRIGGER_LINE(0),
+							    TRIGGER_LINE(1),
+							    TRIGGER_LINE(2),
+							    TRIGGER_LINE(3),
+							    TRIGGER_LINE(4),
+							    TRIGGER_LINE(5),
+							    TRIGGER_LINE(6),
+							    NI_CtrInternalOutput
+							    (0),
+							    NI_AnalogComparisonEvent,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_AI_ReferenceTrigger,
+					    .src = (int[]) {
+							    NI_PFI(0),
+							    NI_PFI(1),
+							    NI_PFI(2),
+							    NI_PFI(3),
+							    NI_PFI(4),
+							    NI_PFI(5),
+							    NI_PFI(6),
+							    NI_PFI(7),
+							    NI_PFI(8),
+							    NI_PFI(9),
+							    TRIGGER_LINE(0),
+							    TRIGGER_LINE(1),
+							    TRIGGER_LINE(2),
+							    TRIGGER_LINE(3),
+							    TRIGGER_LINE(4),
+							    TRIGGER_LINE(5),
+							    TRIGGER_LINE(6),
+							    NI_AnalogComparisonEvent,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_AI_ConvertClock,
+					    .src = (int[]) {
+							    NI_PFI(0),
+							    NI_PFI(1),
+							    NI_PFI(2),
+							    NI_PFI(3),
+							    NI_PFI(4),
+							    NI_PFI(5),
+							    NI_PFI(6),
+							    NI_PFI(7),
+							    NI_PFI(8),
+							    NI_PFI(9),
+							    TRIGGER_LINE(0),
+							    TRIGGER_LINE(1),
+							    TRIGGER_LINE(2),
+							    TRIGGER_LINE(3),
+							    TRIGGER_LINE(4),
+							    TRIGGER_LINE(5),
+							    TRIGGER_LINE(6),
+							    NI_CtrInternalOutput
+							    (0),
+							    NI_AI_ConvertClockTimebase,
+							    NI_AnalogComparisonEvent,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_AI_ConvertClockTimebase,
+					    .src = (int[]) {
+							    TRIGGER_LINE(7),
+							    NI_AI_SampleClockTimebase,
+							    NI_MasterTimebase,
+							    NI_20MHzTimebase,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_AI_PauseTrigger,
+					    .src = (int[]) {
+							    NI_PFI(0),
+							    NI_PFI(1),
+							    NI_PFI(2),
+							    NI_PFI(3),
+							    NI_PFI(4),
+							    NI_PFI(5),
+							    NI_PFI(6),
+							    NI_PFI(7),
+							    NI_PFI(8),
+							    NI_PFI(9),
+							    TRIGGER_LINE(0),
+							    TRIGGER_LINE(1),
+							    TRIGGER_LINE(2),
+							    TRIGGER_LINE(3),
+							    TRIGGER_LINE(4),
+							    TRIGGER_LINE(5),
+							    TRIGGER_LINE(6),
+							    NI_AnalogComparisonEvent,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_AI_HoldComplete,
+					    .src = (int[]) {
+							    NI_AI_HoldCompleteEvent,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_AO_SampleClock,
+					    .src = (int[]) {
+							    NI_PFI(0),
+							    NI_PFI(1),
+							    NI_PFI(2),
+							    NI_PFI(3),
+							    NI_PFI(4),
+							    NI_PFI(5),
+							    NI_PFI(6),
+							    NI_PFI(7),
+							    NI_PFI(8),
+							    NI_PFI(9),
+							    TRIGGER_LINE(0),
+							    TRIGGER_LINE(1),
+							    TRIGGER_LINE(2),
+							    TRIGGER_LINE(3),
+							    TRIGGER_LINE(4),
+							    TRIGGER_LINE(5),
+							    TRIGGER_LINE(6),
+							    NI_CtrInternalOutput
+							    (1),
+							    NI_AO_SampleClockTimebase,
+							    NI_AnalogComparisonEvent,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_AO_SampleClockTimebase,
+					    .src = (int[]) {
+							    NI_PFI(0),
+							    NI_PFI(1),
+							    NI_PFI(2),
+							    NI_PFI(3),
+							    NI_PFI(4),
+							    NI_PFI(5),
+							    NI_PFI(6),
+							    NI_PFI(7),
+							    NI_PFI(8),
+							    NI_PFI(9),
+							    TRIGGER_LINE(0),
+							    TRIGGER_LINE(1),
+							    TRIGGER_LINE(2),
+							    TRIGGER_LINE(3),
+							    TRIGGER_LINE(4),
+							    TRIGGER_LINE(5),
+							    TRIGGER_LINE(6),
+							    TRIGGER_LINE(7),
+							    NI_MasterTimebase,
+							    NI_20MHzTimebase,
+							    NI_100kHzTimebase,
+							    NI_AnalogComparisonEvent,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_AO_StartTrigger,
+					    .src = (int[]) {
+							    NI_PFI(0),
+							    NI_PFI(1),
+							    NI_PFI(2),
+							    NI_PFI(3),
+							    NI_PFI(4),
+							    NI_PFI(5),
+							    NI_PFI(6),
+							    NI_PFI(7),
+							    NI_PFI(8),
+							    NI_PFI(9),
+							    TRIGGER_LINE(0),
+							    TRIGGER_LINE(1),
+							    TRIGGER_LINE(2),
+							    TRIGGER_LINE(3),
+							    TRIGGER_LINE(4),
+							    TRIGGER_LINE(5),
+							    TRIGGER_LINE(6),
+							    NI_AI_StartTrigger,
+							    NI_AnalogComparisonEvent,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_AO_PauseTrigger,
+					    .src = (int[]) {
+							    NI_PFI(0),
+							    NI_PFI(1),
+							    NI_PFI(2),
+							    NI_PFI(3),
+							    NI_PFI(4),
+							    NI_PFI(5),
+							    NI_PFI(6),
+							    NI_PFI(7),
+							    NI_PFI(8),
+							    NI_PFI(9),
+							    TRIGGER_LINE(0),
+							    TRIGGER_LINE(1),
+							    TRIGGER_LINE(2),
+							    TRIGGER_LINE(3),
+							    TRIGGER_LINE(4),
+							    TRIGGER_LINE(5),
+							    TRIGGER_LINE(6),
+							    NI_AnalogComparisonEvent,
+							    0,	/* Termination */
+							}
+					    },
+					{
+					    .dest = NI_MasterTimebase,
+					    .src = (int[]) {
+							    TRIGGER_LINE(7),
+							    NI_20MHzTimebase,
+							    0,	/* Termination */
+							}
+					    },
+					{	/* Termination of list */
+					    .dest = 0,
+					    },
+					    },
 };
-- 
2.25.1


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

* Re: [PATCH] Drivers: comedi: drivers: ni_routing: ni_device_routes: pci-6070e.c Lindented
  2021-07-23 12:27 [PATCH] Drivers: comedi: drivers: ni_routing: ni_device_routes: pci-6070e.c Lindented Artem Baxtiarov
@ 2021-07-23 13:18 ` Greg KH
  2021-07-23 13:31 ` Ian Abbott
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2021-07-23 13:18 UTC (permalink / raw)
  To: Artem Baxtiarov; +Cc: abbotti, hsweeten, linux-kernel

On Fri, Jul 23, 2021 at 03:27:49PM +0300, Artem Baxtiarov wrote:
> I found "Lindent" item in drivers/comedi/TODO.
> I used scripts/Lindent to indent

Please never use that on files.  checkpatch is what you should be using
for this, and odds are the TODO file should just be removed instead.

> drivers/comedi/drivers/ni_routing/ni_device_routes/pci-6070e.c

If you look, your changes make the code harder to read, sorry, but this
isn't needed.

thanks,

greg k-h

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

* Re: [PATCH] Drivers: comedi: drivers: ni_routing: ni_device_routes: pci-6070e.c Lindented
  2021-07-23 12:27 [PATCH] Drivers: comedi: drivers: ni_routing: ni_device_routes: pci-6070e.c Lindented Artem Baxtiarov
  2021-07-23 13:18 ` Greg KH
@ 2021-07-23 13:31 ` Ian Abbott
  1 sibling, 0 replies; 3+ messages in thread
From: Ian Abbott @ 2021-07-23 13:31 UTC (permalink / raw)
  To: Artem Baxtiarov, hsweeten, gregkh; +Cc: linux-kernel

On 23/07/2021 13:27, Artem Baxtiarov wrote:
> I found "Lindent" item in drivers/comedi/TODO.
> I used scripts/Lindent to indent
> drivers/comedi/drivers/ni_routing/ni_device_routes/pci-6070e.c
> 
> Signed-off-by: Artem Baxtiarov <baxtiarovartem@gmail.com>
> ---
>   .../ni_routing/ni_device_routes/pci-6070e.c   | 1227 +++++++++--------
>   1 file changed, 621 insertions(+), 606 deletions(-)
> 

To me, the results look worse than the original. (Perhaps `indent` 
doesn't grok compound literals very well?)

Also, as written in the .../ni_routing/ni_device_routes/pci-6070e.c file 
(and other files in the same directory):

/*
  * The contents of this file are generated using the tools in
  * comedi/drivers/ni_routing/tools
  *
  * Please use those tools to help maintain the contents of this file.
  */

-- 
-=( Ian Abbott <abbotti@mev.co.uk> || MEV Ltd. is a company  )=-
-=( registered in England & Wales.  Regd. number: 02862268.  )=-
-=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=-
-=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-

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

end of thread, other threads:[~2021-07-23 13:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-23 12:27 [PATCH] Drivers: comedi: drivers: ni_routing: ni_device_routes: pci-6070e.c Lindented Artem Baxtiarov
2021-07-23 13:18 ` Greg KH
2021-07-23 13:31 ` Ian Abbott

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).