[PATCH 17/87] staging: comedi: pcl812: rename 'haveMPC508' in boardinfo

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

 



Rename this CamelCase member in the boardinfo and change it to a bit-
field flag.

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 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/comedi/drivers/pcl812.c b/drivers/staging/comedi/drivers/pcl812.c
index 7f3d320..cbbadb8 100644
--- a/drivers/staging/comedi/drivers/pcl812.c
+++ b/drivers/staging/comedi/drivers/pcl812.c
@@ -341,7 +341,7 @@ struct pcl812_board {
 	const struct comedi_lrange *rangelist_ai;
 	unsigned int IRQbits;
 	unsigned int has_dma:1;
-	unsigned char haveMPC508;
+	unsigned int has_mpc508_mux:1;
 };
 
 static const struct pcl812_board boardtypes[] = {
@@ -394,7 +394,7 @@ static const struct pcl812_board boardtypes[] = {
 		.rangelist_ai	= &range_acl8112dg_ai,
 		.IRQbits	= 0xdcfc,
 		.has_dma	= 1,
-		.haveMPC508	= 1,
+		.has_mpc508_mux	= 1,
 	}, {
 		.name		= "acl8112hg",
 		.board_type	= boardACL8112,
@@ -408,7 +408,7 @@ static const struct pcl812_board boardtypes[] = {
 		.rangelist_ai	= &range_acl8112hg_ai,
 		.IRQbits	= 0xdcfc,
 		.has_dma	= 1,
-		.haveMPC508	= 1,
+		.has_mpc508_mux	= 1,
 	}, {
 		.name		= "a821pgl",
 		.board_type	= boardA821,
@@ -531,7 +531,7 @@ static const struct pcl812_board boardtypes[] = {
 		.rangelist_ai	= &range_pcl813b2_ai,
 		.IRQbits	= 0xdcfc,
 		.has_dma	= 1,
-		.haveMPC508	= 1,
+		.has_mpc508_mux	= 1,
 	}, {
 		.name		= "a826pg",
 		.board_type	= boardACL8216,
@@ -1401,7 +1401,7 @@ static int pcl812_attach(struct comedi_device *dev, struct comedi_devconfig *it)
 		else
 			s->insn_read = pcl812_ai_insn_read;
 
-		devpriv->use_MPC = board->haveMPC508;
+		devpriv->use_MPC = board->has_mpc508_mux;
 		if (dev->irq) {
 			dev->read_subdev = s;
 			s->subdev_flags |= SDF_CMD_READ;
-- 
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