[PATCH 05/35] staging: comedi: das1800: tidy up boardinfo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For aesthetics, add some whitespace to the boardinfo array and
remove the unnecessary '= 0' initializations.

Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
Cc: Ian Abbott <abbotti@xxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/staging/comedi/drivers/das1800.c | 331 ++++++++++++++-----------------
 1 file changed, 150 insertions(+), 181 deletions(-)

diff --git a/drivers/staging/comedi/drivers/das1800.c b/drivers/staging/comedi/drivers/das1800.c
index eca6c05d..1b0eb6f 100644
--- a/drivers/staging/comedi/drivers/das1800.c
+++ b/drivers/staging/comedi/drivers/das1800.c
@@ -219,187 +219,156 @@ struct das1800_board {
  */
 static const struct das1800_board das1800_boards[] = {
 	{
-	 .name = "das-1701st",
-	 .ai_speed = 6250,
-	 .resolution = 12,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 0,
-	 .ao_n_chan = 0,
-	 .range_ai = &range_ai_das1801,
-	 },
-	{
-	 .name = "das-1701st-da",
-	 .ai_speed = 6250,
-	 .resolution = 12,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 1,
-	 .ao_n_chan = 4,
-	 .range_ai = &range_ai_das1801,
-	 },
-	{
-	 .name = "das-1702st",
-	 .ai_speed = 6250,
-	 .resolution = 12,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 0,
-	 .ao_n_chan = 0,
-	 .range_ai = &range_ai_das1802,
-	 },
-	{
-	 .name = "das-1702st-da",
-	 .ai_speed = 6250,
-	 .resolution = 12,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 1,
-	 .ao_n_chan = 4,
-	 .range_ai = &range_ai_das1802,
-	 },
-	{
-	 .name = "das-1702hr",
-	 .ai_speed = 20000,
-	 .resolution = 16,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 0,
-	 .ao_n_chan = 0,
-	 .range_ai = &range_ai_das1802,
-	 },
-	{
-	 .name = "das-1702hr-da",
-	 .ai_speed = 20000,
-	 .resolution = 16,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 1,
-	 .ao_n_chan = 2,
-	 .range_ai = &range_ai_das1802,
-	 },
-	{
-	 .name = "das-1701ao",
-	 .ai_speed = 6250,
-	 .resolution = 12,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 2,
-	 .ao_n_chan = 2,
-	 .range_ai = &range_ai_das1801,
-	 },
-	{
-	 .name = "das-1702ao",
-	 .ai_speed = 6250,
-	 .resolution = 12,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 2,
-	 .ao_n_chan = 2,
-	 .range_ai = &range_ai_das1802,
-	 },
-	{
-	 .name = "das-1801st",
-	 .ai_speed = 3000,
-	 .resolution = 12,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 0,
-	 .ao_n_chan = 0,
-	 .range_ai = &range_ai_das1801,
-	 },
-	{
-	 .name = "das-1801st-da",
-	 .ai_speed = 3000,
-	 .resolution = 12,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 1,
-	 .ao_n_chan = 4,
-	 .range_ai = &range_ai_das1801,
-	 },
-	{
-	 .name = "das-1802st",
-	 .ai_speed = 3000,
-	 .resolution = 12,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 0,
-	 .ao_n_chan = 0,
-	 .range_ai = &range_ai_das1802,
-	 },
-	{
-	 .name = "das-1802st-da",
-	 .ai_speed = 3000,
-	 .resolution = 12,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 1,
-	 .ao_n_chan = 4,
-	 .range_ai = &range_ai_das1802,
-	 },
-	{
-	 .name = "das-1802hr",
-	 .ai_speed = 10000,
-	 .resolution = 16,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 0,
-	 .ao_n_chan = 0,
-	 .range_ai = &range_ai_das1802,
-	 },
-	{
-	 .name = "das-1802hr-da",
-	 .ai_speed = 10000,
-	 .resolution = 16,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 1,
-	 .ao_n_chan = 2,
-	 .range_ai = &range_ai_das1802,
-	 },
-	{
-	 .name = "das-1801hc",
-	 .ai_speed = 3000,
-	 .resolution = 12,
-	 .common = 0,
-	 .do_n_chan = 8,
-	 .ao_ability = 1,
-	 .ao_n_chan = 2,
-	 .range_ai = &range_ai_das1801,
-	 .has_64_ai_chan = 1,
-	 },
-	{
-	 .name = "das-1802hc",
-	 .ai_speed = 3000,
-	 .resolution = 12,
-	 .common = 0,
-	 .do_n_chan = 8,
-	 .ao_ability = 1,
-	 .ao_n_chan = 2,
-	 .range_ai = &range_ai_das1802,
-	 .has_64_ai_chan = 1,
-	 },
-	{
-	 .name = "das-1801ao",
-	 .ai_speed = 3000,
-	 .resolution = 12,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 2,
-	 .ao_n_chan = 2,
-	 .range_ai = &range_ai_das1801,
-	 },
-	{
-	 .name = "das-1802ao",
-	 .ai_speed = 3000,
-	 .resolution = 12,
-	 .common = 1,
-	 .do_n_chan = 4,
-	 .ao_ability = 2,
-	 .ao_n_chan = 2,
-	 .range_ai = &range_ai_das1802,
-	 },
+		.name		= "das-1701st",
+		.ai_speed	= 6250,
+		.resolution	= 12,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.range_ai	= &range_ai_das1801,
+	}, {
+		.name		= "das-1701st-da",
+		.ai_speed	= 6250,
+		.resolution	= 12,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.ao_ability	= 1,
+		.ao_n_chan	= 4,
+		.range_ai	= &range_ai_das1801,
+	}, {
+		.name		= "das-1702st",
+		.ai_speed	= 6250,
+		.resolution	= 12,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.range_ai	= &range_ai_das1802,
+	}, {
+		.name		= "das-1702st-da",
+		.ai_speed	= 6250,
+		.resolution	= 12,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.ao_ability	= 1,
+		.ao_n_chan	= 4,
+		.range_ai	= &range_ai_das1802,
+	}, {
+		.name		= "das-1702hr",
+		.ai_speed	= 20000,
+		.resolution	= 16,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.range_ai	= &range_ai_das1802,
+	}, {
+		.name		= "das-1702hr-da",
+		.ai_speed	= 20000,
+		.resolution	= 16,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.ao_ability	= 1,
+		.ao_n_chan	= 2,
+		.range_ai	= &range_ai_das1802,
+	}, {
+		.name		= "das-1701ao",
+		.ai_speed	= 6250,
+		.resolution	= 12,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.ao_ability	= 2,
+		.ao_n_chan	= 2,
+		.range_ai	= &range_ai_das1801,
+	}, {
+		.name		= "das-1702ao",
+		.ai_speed	= 6250,
+		.resolution	= 12,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.ao_ability	= 2,
+		.ao_n_chan	= 2,
+		.range_ai	= &range_ai_das1802,
+	}, {
+		.name		= "das-1801st",
+		.ai_speed	= 3000,
+		.resolution	= 12,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.range_ai	= &range_ai_das1801,
+	}, {
+		.name		= "das-1801st-da",
+		.ai_speed	= 3000,
+		.resolution	= 12,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.ao_ability	= 1,
+		.ao_n_chan	= 4,
+		.range_ai	= &range_ai_das1801,
+	}, {
+		.name		= "das-1802st",
+		.ai_speed	= 3000,
+		.resolution	= 12,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.range_ai	= &range_ai_das1802,
+	}, {
+		.name		= "das-1802st-da",
+		.ai_speed	= 3000,
+		.resolution	= 12,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.ao_ability	= 1,
+		.ao_n_chan	= 4,
+		.range_ai	= &range_ai_das1802,
+	}, {
+		.name		= "das-1802hr",
+		.ai_speed	= 10000,
+		.resolution	= 16,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.range_ai	= &range_ai_das1802,
+	}, {
+		.name		= "das-1802hr-da",
+		.ai_speed	= 10000,
+		.resolution	= 16,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.ao_ability	= 1,
+		.ao_n_chan	= 2,
+		.range_ai	= &range_ai_das1802,
+	}, {
+		.name		= "das-1801hc",
+		.ai_speed	= 3000,
+		.resolution	= 12,
+		.do_n_chan	= 8,
+		.ao_ability	= 1,
+		.ao_n_chan	= 2,
+		.range_ai	= &range_ai_das1801,
+		.has_64_ai_chan	= 1,
+	}, {
+		.name		= "das-1802hc",
+		.ai_speed	= 3000,
+		.resolution	= 12,
+		.do_n_chan	= 8,
+		.ao_ability	= 1,
+		.ao_n_chan	= 2,
+		.range_ai	= &range_ai_das1802,
+		.has_64_ai_chan	= 1,
+	}, {
+		.name		= "das-1801ao",
+		.ai_speed	= 3000,
+		.resolution	= 12,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.ao_ability	= 2,
+		.ao_n_chan	= 2,
+		.range_ai	= &range_ai_das1801,
+	}, {
+		.name		= "das-1802ao",
+		.ai_speed	= 3000,
+		.resolution	= 12,
+		.common		= 1,
+		.do_n_chan	= 4,
+		.ao_ability	= 2,
+		.ao_n_chan	= 2,
+		.range_ai	= &range_ai_das1802,
+	},
 };
 
 struct das1800_private {
-- 
2.6.3

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux