[PATCH 03/29] staging: comedi: dt282x: remove '= 0' boardinfo

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

 



From: H Hartley Sweeten <hartleys@xxxxxxxxxxxxxxxxxxx>

All unlisted members in the boardinfo declaraction will default to '0'.
Remove the unnecessary code.

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

diff --git a/drivers/staging/comedi/drivers/dt282x.c b/drivers/staging/comedi/drivers/dt282x.c
index aa6789d..ea4abcc 100644
--- a/drivers/staging/comedi/drivers/dt282x.c
+++ b/drivers/staging/comedi/drivers/dt282x.c
@@ -223,7 +223,6 @@ static const struct dt282x_board boardtypes[] = {
 		.adchan_se	= 16,
 		.adchan_di	= 8,
 		.ai_speed	= 20000,
-		.ispgl		= 0,
 		.dachan		= 2,
 		.dabits		= 12,
 	}, {
@@ -232,7 +231,6 @@ static const struct dt282x_board boardtypes[] = {
 		.adchan_se	= 16,
 		.adchan_di	= 8,
 		.ai_speed	= 6500,
-		.ispgl		= 0,
 		.dachan		= 2,
 		.dabits		= 12,
 	}, {
@@ -241,16 +239,13 @@ static const struct dt282x_board boardtypes[] = {
 		.adchan_se	= 16,
 		.adchan_di	= 8,
 		.ai_speed	= 4000,
-		.ispgl		= 0,
 		.dachan		= 2,
 		.dabits		= 12,
 	}, {
 		.name		= "dt2823",
 		.adbits		= 16,
-		.adchan_se	= 0,
 		.adchan_di	= 4,
 		.ai_speed	= 10000,
-		.ispgl		= 0,
 		.dachan		= 2,
 		.dabits		= 16,
 	}, {
@@ -259,9 +254,6 @@ static const struct dt282x_board boardtypes[] = {
 		.adchan_se	= 16,
 		.adchan_di	= 8,
 		.ai_speed	= 20000,
-		.ispgl		= 0,
-		.dachan		= 0,
-		.dabits		= 0,
 	}, {
 		.name		= "dt2824-pgl",
 		.adbits		= 12,
@@ -269,8 +261,6 @@ static const struct dt282x_board boardtypes[] = {
 		.adchan_di	= 8,
 		.ai_speed	= 20000,
 		.ispgl		= 1,
-		.dachan		= 0,
-		.dabits		= 0,
 	}, {
 		.name		= "dt2825",
 		.adbits		= 12,
@@ -283,28 +273,22 @@ static const struct dt282x_board boardtypes[] = {
 	}, {
 		.name		= "dt2827",
 		.adbits		= 16,
-		.adchan_se	= 0,
 		.adchan_di	= 4,
 		.ai_speed	= 10000,
-		.ispgl		= 0,
 		.dachan		= 2,
 		.dabits		= 12,
 	}, {
 		.name		= "dt2828",
 		.adbits		= 12,
 		.adchan_se	= 4,
-		.adchan_di	= 0,
 		.ai_speed	= 10000,
-		.ispgl		= 0,
 		.dachan		= 2,
 		.dabits		= 12,
 	}, {
 		.name		= "dt2829",
 		.adbits		= 16,
 		.adchan_se	= 8,
-		.adchan_di	= 0,
 		.ai_speed	= 33250,
-		.ispgl		= 0,
 		.dachan		= 2,
 		.dabits		= 16,
 	}, {
@@ -313,7 +297,6 @@ static const struct dt282x_board boardtypes[] = {
 		.adchan_se	= 16,
 		.adchan_di	= 8,
 		.ai_speed	= 10000,
-		.ispgl		= 0,
 		.dachan		= 2,
 		.dabits		= 12,
 	}, {
@@ -322,18 +305,12 @@ static const struct dt282x_board boardtypes[] = {
 		.adchan_se	= 16,
 		.adchan_di	= 8,
 		.ai_speed	= 10000,
-		.ispgl		= 0,
-		.dachan		= 0,
-		.dabits		= 0,
 	}, {
 		.name		= "dt24-ez",
 		.adbits		= 12,
 		.adchan_se	= 16,
 		.adchan_di	= 8,
 		.ai_speed	= 10000,
-		.ispgl		= 0,
-		.dachan		= 0,
-		.dabits		= 0,
 	}, {
 		.name		= "dt24-ez-pgl",
 		.adbits		= 12,
@@ -341,8 +318,6 @@ static const struct dt282x_board boardtypes[] = {
 		.adchan_di	= 8,
 		.ai_speed	= 10000,
 		.ispgl		= 1,
-		.dachan		= 0,
-		.dabits		= 0,
 	},
 };
 
-- 
1.9.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