Commit b4918808 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: more fix the way structs are initialized.

Change from the foo: bar format to the .foo = bar format.
Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 814900c9
...@@ -278,22 +278,22 @@ struct rtdBoard { ...@@ -278,22 +278,22 @@ struct rtdBoard {
static const struct rtdBoard rtd520Boards[] = { static const struct rtdBoard rtd520Boards[] = {
{ {
name: "DM7520", .name = "DM7520",
device_id : 0x7520, .device_id = 0x7520,
aiChans: 16, .aiChans = 16,
aiBits: 12, .aiBits = 12,
aiMaxGain:32, .aiMaxGain = 32,
range10Start:6, .range10Start = 6,
rangeUniStart:12, .rangeUniStart = 12,
}, },
{ {
name: "PCI4520", .name = "PCI4520",
device_id : 0x4520, .device_id = 0x4520,
aiChans: 16, .aiChans = 16,
aiBits: 12, .aiBits = 12,
aiMaxGain:128, .aiMaxGain = 128,
range10Start:8, .range10Start = 8,
rangeUniStart:16, .rangeUniStart = 16,
}, },
}; };
...@@ -684,10 +684,10 @@ static int rtd_attach(struct comedi_device *dev, struct comedi_devconfig *it); ...@@ -684,10 +684,10 @@ static int rtd_attach(struct comedi_device *dev, struct comedi_devconfig *it);
static int rtd_detach(struct comedi_device *dev); static int rtd_detach(struct comedi_device *dev);
static struct comedi_driver rtd520Driver = { static struct comedi_driver rtd520Driver = {
driver_name: DRV_NAME, .driver_name = DRV_NAME,
module : THIS_MODULE, .module = THIS_MODULE,
attach : rtd_attach, .attach = rtd_attach,
detach : rtd_detach, .detach = rtd_detach,
}; };
static int rtd_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice *s, static int rtd_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
......
...@@ -95,14 +95,14 @@ struct s626_board { ...@@ -95,14 +95,14 @@ struct s626_board {
static const struct s626_board s626_boards[] = { static const struct s626_board s626_boards[] = {
{ {
name: "s626", .name = "s626",
ai_chans : S626_ADC_CHANNELS, .ai_chans = S626_ADC_CHANNELS,
ai_bits: 14, .ai_bits = 14,
ao_chans : S626_DAC_CHANNELS, .ao_chans = S626_DAC_CHANNELS,
ao_bits: 13, .ao_bits = 13,
dio_chans : S626_DIO_CHANNELS, .dio_chans = S626_DIO_CHANNELS,
dio_banks : S626_DIO_BANKS, .dio_banks = S626_DIO_BANKS,
enc_chans : S626_ENCODER_CHANNELS, .enc_chans = S626_ENCODER_CHANNELS,
} }
}; };
...@@ -122,10 +122,10 @@ static int s626_attach(struct comedi_device *dev, struct comedi_devconfig *it); ...@@ -122,10 +122,10 @@ static int s626_attach(struct comedi_device *dev, struct comedi_devconfig *it);
static int s626_detach(struct comedi_device *dev); static int s626_detach(struct comedi_device *dev);
static struct comedi_driver driver_s626 = { static struct comedi_driver driver_s626 = {
driver_name:"s626", .driver_name = "s626",
module : THIS_MODULE, .module = THIS_MODULE,
attach : s626_attach, .attach = s626_attach,
detach : s626_detach, .detach = s626_detach,
}; };
struct s626_private { struct s626_private {
...@@ -173,39 +173,39 @@ struct dio_private { ...@@ -173,39 +173,39 @@ struct dio_private {
}; };
static struct dio_private dio_private_A = { static struct dio_private dio_private_A = {
RDDIn:LP_RDDINA, .RDDIn = LP_RDDINA,
WRDOut : LP_WRDOUTA, .WRDOut = LP_WRDOUTA,
RDEdgSel : LP_RDEDGSELA, .RDEdgSel = LP_RDEDGSELA,
WREdgSel : LP_WREDGSELA, .WREdgSel = LP_WREDGSELA,
RDCapSel : LP_RDCAPSELA, .RDCapSel = LP_RDCAPSELA,
WRCapSel : LP_WRCAPSELA, .WRCapSel = LP_WRCAPSELA,
RDCapFlg : LP_RDCAPFLGA, .RDCapFlg = LP_RDCAPFLGA,
RDIntSel : LP_RDINTSELA, .RDIntSel = LP_RDINTSELA,
WRIntSel : LP_WRINTSELA, .WRIntSel = LP_WRINTSELA,
}; };
static struct dio_private dio_private_B = { static struct dio_private dio_private_B = {
RDDIn:LP_RDDINB, .RDDIn = LP_RDDINB,
WRDOut : LP_WRDOUTB, .WRDOut = LP_WRDOUTB,
RDEdgSel : LP_RDEDGSELB, .RDEdgSel = LP_RDEDGSELB,
WREdgSel : LP_WREDGSELB, .WREdgSel = LP_WREDGSELB,
RDCapSel : LP_RDCAPSELB, .RDCapSel = LP_RDCAPSELB,
WRCapSel : LP_WRCAPSELB, .WRCapSel = LP_WRCAPSELB,
RDCapFlg : LP_RDCAPFLGB, .RDCapFlg = LP_RDCAPFLGB,
RDIntSel : LP_RDINTSELB, .RDIntSel = LP_RDINTSELB,
WRIntSel : LP_WRINTSELB, .WRIntSel = LP_WRINTSELB,
}; };
static struct dio_private dio_private_C = { static struct dio_private dio_private_C = {
RDDIn:LP_RDDINC, .RDDIn = LP_RDDINC,
WRDOut : LP_WRDOUTC, .WRDOut = LP_WRDOUTC,
RDEdgSel : LP_RDEDGSELC, .RDEdgSel = LP_RDEDGSELC,
WREdgSel : LP_WREDGSELC, .WREdgSel = LP_WREDGSELC,
RDCapSel : LP_RDCAPSELC, .RDCapSel = LP_RDCAPSELC,
WRCapSel : LP_WRCAPSELC, .WRCapSel = LP_WRCAPSELC,
RDCapFlg : LP_RDCAPFLGC, .RDCapFlg = LP_RDCAPFLGC,
RDIntSel : LP_RDINTSELC, .RDIntSel = LP_RDINTSELC,
WRIntSel : LP_WRINTSELC, .WRIntSel = LP_WRINTSELC,
}; };
/* to group dio devices (48 bits mask and data are not allowed ???) /* to group dio devices (48 bits mask and data are not allowed ???)
...@@ -355,100 +355,100 @@ static void CountersInit(struct comedi_device *dev); ...@@ -355,100 +355,100 @@ static void CountersInit(struct comedi_device *dev);
/* struct enc_private; */ /* struct enc_private; */
static struct enc_private enc_private_data[] = { static struct enc_private enc_private_data[] = {
{ {
GetEnable:GetEnable_A, .GetEnable = GetEnable_A,
GetIntSrc : GetIntSrc_A, .GetIntSrc = GetIntSrc_A,
GetLoadTrig : GetLoadTrig_A, .GetLoadTrig = GetLoadTrig_A,
GetMode : GetMode_A, .GetMode = GetMode_A,
PulseIndex : PulseIndex_A, .PulseIndex = PulseIndex_A,
SetEnable : SetEnable_A, .SetEnable = SetEnable_A,
SetIntSrc : SetIntSrc_A, .SetIntSrc = SetIntSrc_A,
SetLoadTrig : SetLoadTrig_A, .SetLoadTrig = SetLoadTrig_A,
SetMode : SetMode_A, .SetMode = SetMode_A,
ResetCapFlags : ResetCapFlags_A, .ResetCapFlags = ResetCapFlags_A,
MyCRA : LP_CR0A, .MyCRA = LP_CR0A,
MyCRB : LP_CR0B, .MyCRB = LP_CR0B,
MyLatchLsw : LP_CNTR0ALSW, .MyLatchLsw = LP_CNTR0ALSW,
MyEventBits : EVBITS(0), .MyEventBits = EVBITS(0),
}, },
{ {
GetEnable:GetEnable_A, .GetEnable = GetEnable_A,
GetIntSrc : GetIntSrc_A, .GetIntSrc = GetIntSrc_A,
GetLoadTrig : GetLoadTrig_A, .GetLoadTrig = GetLoadTrig_A,
GetMode : GetMode_A, .GetMode = GetMode_A,
PulseIndex : PulseIndex_A, .PulseIndex = PulseIndex_A,
SetEnable : SetEnable_A, .SetEnable = SetEnable_A,
SetIntSrc : SetIntSrc_A, .SetIntSrc = SetIntSrc_A,
SetLoadTrig : SetLoadTrig_A, .SetLoadTrig = SetLoadTrig_A,
SetMode : SetMode_A, .SetMode = SetMode_A,
ResetCapFlags : ResetCapFlags_A, .ResetCapFlags = ResetCapFlags_A,
MyCRA : LP_CR1A, .MyCRA = LP_CR1A,
MyCRB : LP_CR1B, .MyCRB = LP_CR1B,
MyLatchLsw : LP_CNTR1ALSW, .MyLatchLsw = LP_CNTR1ALSW,
MyEventBits : EVBITS(1), .MyEventBits = EVBITS(1),
}, },
{ {
GetEnable:GetEnable_A, .GetEnable = GetEnable_A,
GetIntSrc : GetIntSrc_A, .GetIntSrc = GetIntSrc_A,
GetLoadTrig : GetLoadTrig_A, .GetLoadTrig = GetLoadTrig_A,
GetMode : GetMode_A, .GetMode = GetMode_A,
PulseIndex : PulseIndex_A, .PulseIndex = PulseIndex_A,
SetEnable : SetEnable_A, .SetEnable = SetEnable_A,
SetIntSrc : SetIntSrc_A, .SetIntSrc = SetIntSrc_A,
SetLoadTrig : SetLoadTrig_A, .SetLoadTrig = SetLoadTrig_A,
SetMode : SetMode_A, .SetMode = SetMode_A,
ResetCapFlags : ResetCapFlags_A, .ResetCapFlags = ResetCapFlags_A,
MyCRA : LP_CR2A, .MyCRA = LP_CR2A,
MyCRB : LP_CR2B, .MyCRB = LP_CR2B,
MyLatchLsw : LP_CNTR2ALSW, .MyLatchLsw = LP_CNTR2ALSW,
MyEventBits : EVBITS(2), .MyEventBits = EVBITS(2),
}, },
{ {
GetEnable:GetEnable_B, .GetEnable = GetEnable_B,
GetIntSrc : GetIntSrc_B, .GetIntSrc = GetIntSrc_B,
GetLoadTrig : GetLoadTrig_B, .GetLoadTrig = GetLoadTrig_B,
GetMode : GetMode_B, .GetMode = GetMode_B,
PulseIndex : PulseIndex_B, .PulseIndex = PulseIndex_B,
SetEnable : SetEnable_B, .SetEnable = SetEnable_B,
SetIntSrc : SetIntSrc_B, .SetIntSrc = SetIntSrc_B,
SetLoadTrig : SetLoadTrig_B, .SetLoadTrig = SetLoadTrig_B,
SetMode : SetMode_B, .SetMode = SetMode_B,
ResetCapFlags : ResetCapFlags_B, .ResetCapFlags = ResetCapFlags_B,
MyCRA : LP_CR0A, .MyCRA = LP_CR0A,
MyCRB : LP_CR0B, .MyCRB = LP_CR0B,
MyLatchLsw : LP_CNTR0BLSW, .MyLatchLsw = LP_CNTR0BLSW,
MyEventBits : EVBITS(3), .MyEventBits = EVBITS(3),
}, },
{ {
GetEnable:GetEnable_B, .GetEnable = GetEnable_B,
GetIntSrc : GetIntSrc_B, .GetIntSrc = GetIntSrc_B,
GetLoadTrig : GetLoadTrig_B, .GetLoadTrig = GetLoadTrig_B,
GetMode : GetMode_B, .GetMode = GetMode_B,
PulseIndex : PulseIndex_B, .PulseIndex = PulseIndex_B,
SetEnable : SetEnable_B, .SetEnable = SetEnable_B,
SetIntSrc : SetIntSrc_B, .SetIntSrc = SetIntSrc_B,
SetLoadTrig : SetLoadTrig_B, .SetLoadTrig = SetLoadTrig_B,
SetMode : SetMode_B, .SetMode = SetMode_B,
ResetCapFlags : ResetCapFlags_B, .ResetCapFlags = ResetCapFlags_B,
MyCRA : LP_CR1A, .MyCRA = LP_CR1A,
MyCRB : LP_CR1B, .MyCRB = LP_CR1B,
MyLatchLsw : LP_CNTR1BLSW, .MyLatchLsw = LP_CNTR1BLSW,
MyEventBits : EVBITS(4), .MyEventBits = EVBITS(4),
}, },
{ {
GetEnable:GetEnable_B, .GetEnable = GetEnable_B,
GetIntSrc : GetIntSrc_B, .GetIntSrc = GetIntSrc_B,
GetLoadTrig : GetLoadTrig_B, .GetLoadTrig = GetLoadTrig_B,
GetMode : GetMode_B, .GetMode = GetMode_B,
PulseIndex : PulseIndex_B, .PulseIndex = PulseIndex_B,
SetEnable : SetEnable_B, .SetEnable = SetEnable_B,
SetIntSrc : SetIntSrc_B, .SetIntSrc = SetIntSrc_B,
SetLoadTrig : SetLoadTrig_B, .SetLoadTrig = SetLoadTrig_B,
SetMode : SetMode_B, .SetMode = SetMode_B,
ResetCapFlags : ResetCapFlags_B, .ResetCapFlags = ResetCapFlags_B,
MyCRA : LP_CR2A, .MyCRA = LP_CR2A,
MyCRB : LP_CR2B, .MyCRB = LP_CR2B,
MyLatchLsw : LP_CNTR2BLSW, .MyLatchLsw = LP_CNTR2BLSW,
MyEventBits : EVBITS(5), .MyEventBits = EVBITS(5),
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment