[PATCH 04/87] staging: comedi: pcl812: remove 0/NULL initialzation in boardinfo

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

 



The unlisted members in the boardinfo declaration will default to 0/NULL.

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

diff --git a/drivers/staging/comedi/drivers/pcl812.c b/drivers/staging/comedi/drivers/pcl812.c
index 6090360..e1857cf 100644
--- a/drivers/staging/comedi/drivers/pcl812.c
+++ b/drivers/staging/comedi/drivers/pcl812.c
@@ -354,7 +354,6 @@ static const struct pcl812_board boardtypes[] = {
 		.name		= "pcl812",
 		.board_type	= boardPCL812,
 		.n_aichan	= 16,
-		.n_aichan_diff	= 0,
 		.n_aochan	= 2,
 		.n_dichan	= 16,
 		.n_dochan	= 16,
@@ -366,12 +365,10 @@ static const struct pcl812_board boardtypes[] = {
 		.IRQbits	= 0xdcfc,
 		.DMAbits	= 0x0a,
 		.io_range	= PCLx1x_IORANGE,
-		.haveMPC508	= 0,
 	}, {
 		.name		= "pcl812pg",
 		.board_type	= boardPCL812PG,
 		.n_aichan	= 16,
-		.n_aichan_diff	= 0,
 		.n_aochan	= 2,
 		.n_dichan	= 16,
 		.n_dochan	= 16,
@@ -383,12 +380,10 @@ static const struct pcl812_board boardtypes[] = {
 		.IRQbits	= 0xdcfc,
 		.DMAbits	= 0x0a,
 		.io_range	= PCLx1x_IORANGE,
-		.haveMPC508	= 0,
 	}, {
 		.name		= "acl8112pg",
 		.board_type	= boardPCL812PG,
 		.n_aichan	= 16,
-		.n_aichan_diff	= 0,
 		.n_aochan	= 2,
 		.n_dichan	= 16,
 		.n_dochan	= 16,
@@ -400,7 +395,6 @@ static const struct pcl812_board boardtypes[] = {
 		.IRQbits	= 0xdcfc,
 		.DMAbits	= 0x0a,
 		.io_range	= PCLx1x_IORANGE,
-		.haveMPC508	= 0,
 	}, {
 		.name		= "acl8112dg",
 		.board_type	= boardACL8112,
@@ -449,26 +443,18 @@ static const struct pcl812_board boardtypes[] = {
 		.rangelist_ai	= &range_pcl813b_ai,
 		.rangelist_ao	= &range_unipolar5,
 		.IRQbits	= 0x000c,
-		.DMAbits	= 0x00,
 		.io_range	= PCLx1x_IORANGE,
-		.haveMPC508	= 0,
 	}, {
 		.name		= "a821pglnda",
 		.board_type	= boardA821,
 		.n_aichan	= 16,
 		.n_aichan_diff	= 8,
-		.n_aochan	= 0,
-		.n_dichan	= 0,
-		.n_dochan	= 0,
 		.ai_maxdata	= 0x0fff,
 		.ai_ns_min	= 10000,
 		.i8254_osc_base	= I8254_OSC_BASE_2MHZ,
 		.rangelist_ai	= &range_pcl813b_ai,
-		.rangelist_ao	= NULL,
 		.IRQbits	= 0x000c,
-		.DMAbits	= 0x00,
 		.io_range	= PCLx1x_IORANGE,
-		.haveMPC508	= 0,
 	}, {
 		.name		= "a821pgh",
 		.board_type	= boardA821,
@@ -483,9 +469,7 @@ static const struct pcl812_board boardtypes[] = {
 		.rangelist_ai	= &range_a821pgh_ai,
 		.rangelist_ao	= &range_unipolar5,
 		.IRQbits	= 0x000c,
-		.DMAbits	= 0x00,
 		.io_range	= PCLx1x_IORANGE,
-		.haveMPC508	= 0,
 	}, {
 		.name		= "a822pgl",
 		.board_type	= boardACL8112,
@@ -502,7 +486,6 @@ static const struct pcl812_board boardtypes[] = {
 		.IRQbits	= 0xdcfc,
 		.DMAbits	= 0x0a,
 		.io_range	= PCLx1x_IORANGE,
-		.haveMPC508	= 0,
 	}, {
 		.name		= "a822pgh",
 		.board_type	= boardACL8112,
@@ -519,7 +502,6 @@ static const struct pcl812_board boardtypes[] = {
 		.IRQbits	= 0xdcfc,
 		.DMAbits	= 0x0a,
 		.io_range	= PCLx1x_IORANGE,
-		.haveMPC508	= 0,
 	}, {
 		.name		= "a823pgl",
 		.board_type	= boardACL8112,
@@ -536,7 +518,6 @@ static const struct pcl812_board boardtypes[] = {
 		.IRQbits	= 0xdcfc,
 		.DMAbits	= 0x0a,
 		.io_range	= PCLx1x_IORANGE,
-		.haveMPC508	= 0,
 	}, {
 		.name		= "a823pgh",
 		.board_type	= boardACL8112,
@@ -553,75 +534,34 @@ static const struct pcl812_board boardtypes[] = {
 		.IRQbits	= 0xdcfc,
 		.DMAbits	= 0x0a,
 		.io_range	= PCLx1x_IORANGE,
-		.haveMPC508	= 0,
 	}, {
 		.name		= "pcl813",
 		.board_type	= boardPCL813,
 		.n_aichan	= 32,
-		.n_aichan_diff	= 0,
-		.n_aochan	= 0,
-		.n_dichan	= 0,
-		.n_dochan	= 0,
 		.ai_maxdata	= 0x0fff,
-		.ai_ns_min	= 0,
-		.i8254_osc_base	= 0,
 		.rangelist_ai	= &range_pcl813b_ai,
-		.rangelist_ao	= NULL,
-		.IRQbits	= 0x0000,
-		.DMAbits	= 0x00,
 		.io_range	= PCLx1x_IORANGE,
-		.haveMPC508	= 0,
 	}, {
 		.name		= "pcl813b",
 		.board_type	= boardPCL813B,
 		.n_aichan	= 32,
-		.n_aichan_diff	= 0,
-		.n_aochan	= 0,
-		.n_dichan	= 0,
-		.n_dochan	= 0,
 		.ai_maxdata	= 0x0fff,
-		.ai_ns_min	= 0,
-		.i8254_osc_base	= 0,
 		.rangelist_ai	= &range_pcl813b_ai,
-		.rangelist_ao	= NULL,
-		.IRQbits	= 0x0000,
-		.DMAbits	= 0x00,
 		.io_range	= PCLx1x_IORANGE,
-		.haveMPC508	= 0,
 	}, {
 		.name		= "acl8113",
 		.board_type	= boardACL8113,
 		.n_aichan	= 32,
-		.n_aichan_diff	= 0,
-		.n_aochan	= 0,
-		.n_dichan	= 0,
-		.n_dochan	= 0,
 		.ai_maxdata	= 0x0fff,
-		.ai_ns_min	= 0,
-		.i8254_osc_base	= 0,
 		.rangelist_ai	= &range_acl8113_1_ai,
-		.rangelist_ao	= NULL,
-		.IRQbits	= 0x0000,
-		.DMAbits	= 0x00,
 		.io_range	= PCLx1x_IORANGE,
-		.haveMPC508	= 0,
 	}, {
 		.name		= "iso813",
 		.board_type	= boardISO813,
 		.n_aichan	= 32,
-		.n_aichan_diff	= 0,
-		.n_aochan	= 0,
-		.n_dichan	= 0,
-		.n_dochan	= 0,
 		.ai_maxdata	= 0x0fff,
-		.ai_ns_min	= 0,
-		.i8254_osc_base	= 0,
 		.rangelist_ai	= &range_iso813_1_ai,
-		.rangelist_ao	= NULL,
-		.IRQbits	= 0x0000,
-		.DMAbits	= 0x00,
 		.io_range	= PCLx1x_IORANGE,
-		.haveMPC508	= 0,
 	}, {
 		.name		= "acl8216",
 		.board_type	= boardACL8216,
@@ -655,7 +595,6 @@ static const struct pcl812_board boardtypes[] = {
 		.IRQbits	= 0xdcfc,
 		.DMAbits	= 0x0a,
 		.io_range	= PCLx1x_IORANGE,
-		.haveMPC508	= 0,
 	},
 };
 
-- 
1.8.5.2

_______________________________________________
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