From: H Hartley Sweeten Date: Wed, 6 Feb 2013 00:30:21 +0000 (-0700) Subject: staging: comedi: vmk80xx: cleanup the comedi_lrange tables X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f45787c687adcf3c01599bf8f32667fab5271e0d;p=openwrt%2Fstaging%2Fblogic.git staging: comedi: vmk80xx: cleanup the comedi_lrange tables The vmk8055_range table is a duplicate of the comedi core provided range_unipolar5 table. Use that instead. For aesthetic reasons, clean up the formating of the vmk8061_range table. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/vmk80xx.c b/drivers/staging/comedi/drivers/vmk80xx.c index 8ec5985121ee..23715f651025 100644 --- a/drivers/staging/comedi/drivers/vmk80xx.c +++ b/drivers/staging/comedi/drivers/vmk80xx.c @@ -133,12 +133,11 @@ struct firmware_version { unsigned char ic6_vers[32]; /* CPU */ }; -static const struct comedi_lrange vmk8055_range = { - 1, {UNI_RANGE(5)} -}; - static const struct comedi_lrange vmk8061_range = { - 2, {UNI_RANGE(5), UNI_RANGE(10)} + 2, { + UNI_RANGE(5), + UNI_RANGE(10) + } }; struct vmk80xx_board { @@ -158,7 +157,7 @@ static const struct vmk80xx_board vmk80xx_boardinfo[] = { [DEVICE_VMK8055] = { .name = "K8055 (VM110)", .model = VMK8055_MODEL, - .range = &vmk8055_range, + .range = &range_unipolar5, .ai_nchans = 2, .ai_maxdata = 0x00ff, .ao_nchans = 2,