[PATCH 70/77] staging: comedi: usbduxsigma: cleanup comedi_lrange table

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

 



Rename the table so it has namespace associated with the driver.
Tidy up the whitespace of the table.

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

diff --git a/drivers/staging/comedi/drivers/usbduxsigma.c b/drivers/staging/comedi/drivers/usbduxsigma.c
index 8938305..6358383 100644
--- a/drivers/staging/comedi/drivers/usbduxsigma.c
+++ b/drivers/staging/comedi/drivers/usbduxsigma.c
@@ -157,12 +157,10 @@ Status: testing
 #define USBDUXSIGMA_PWM_ON_CMD		7
 #define USBDUXSIGMA_PWM_OFF_CMD		8
 
-/**************************************************/
-/* comedi constants */
-static const struct comedi_lrange range_usbdux_ai_range = { 1, {
-								BIP_RANGE
-								(2.65/2.0)
-								}
+static const struct comedi_lrange usbduxsigma_ai_range = {
+	1, {
+		BIP_RANGE(2.65 / 2.0)
+	}
 };
 
 struct usbduxsigma_private {
@@ -1433,7 +1431,7 @@ static int usbduxsigma_attach_common(struct comedi_device *dev)
 	s->n_chan	= NUMCHANNELS;
 	s->len_chanlist	= NUMCHANNELS;
 	s->maxdata	= 0x00ffffff;
-	s->range_table	= &range_usbdux_ai_range;
+	s->range_table	= &usbduxsigma_ai_range;
 	s->insn_read	= usbduxsigma_ai_insn_read;
 	s->do_cmdtest	= usbduxsigma_ai_cmdtest;
 	s->do_cmd	= usbduxsigma_ai_cmd;
-- 
1.8.1.4

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/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