~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/staging/comedi/drivers/icp_multi.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
#define n_boardtypes (sizeof(boardtypes)/sizeof(struct boardtype))
177
177
 
178
178
static struct comedi_driver driver_icp_multi = {
179
 
driver_name: "icp_multi",
180
 
module : THIS_MODULE,
181
 
attach : icp_multi_attach,
182
 
detach : icp_multi_detach,
183
 
num_names : n_boardtypes,
184
 
board_name : &boardtypes[0].name,
185
 
offset : sizeof(struct boardtype),
 
179
        .driver_name = "icp_multi",
 
180
        .module = THIS_MODULE,
 
181
        .attach = icp_multi_attach,
 
182
        .detach = icp_multi_detach,
 
183
        .num_names = n_boardtypes,
 
184
        .board_name = &boardtypes[0].name,
 
185
        .offset = sizeof(struct boardtype),
186
186
};
187
187
 
188
188
static int __init driver_icp_multi_init_module(void)
715
715
        is built correctly
716
716
 
717
717
Parameters:
718
 
        struct comedi_device *dev       Pointer to current sevice structure
 
718
        struct comedi_device *dev       Pointer to current service structure
719
719
        struct comedi_subdevice *s      Pointer to current subdevice structure
720
720
        unsigned int *chanlist  Pointer to packed channel list
721
721
        unsigned int n_chan     Number of channels to scan
772
772
        Status register.
773
773
 
774
774
Parameters:
775
 
        struct comedi_device *dev       Pointer to current sevice structure
 
775
        struct comedi_device *dev       Pointer to current service structure
776
776
        struct comedi_subdevice *s      Pointer to current subdevice structure
777
777
        unsigned int *chanlist  Pointer to packed channel list
778
778
        unsigned int n_chan     Number of channels to scan
848
848
        This function resets the icp multi device to a 'safe' state
849
849
 
850
850
Parameters:
851
 
        struct comedi_device *dev       Pointer to current sevice structure
 
851
        struct comedi_device *dev       Pointer to current service structure
852
852
 
853
853
Returns:int     0 = success
854
854