Introduce some helper functions for the comedi PCMCIA drivers to handle the boilerplate code that enables/disables the device. H Hartley Sweeten (7): staging: comedi: comedi_pcmcia: introduce comedi_pcmcia_{enable,disable} staging: comedi: cb_das16_cs: use comedi_pcmcia_{enable,disable} staging: comedi: cb_das16_cs: use pcmcia_request_irq() staging: comedi: cb_das16_cs: use comedi_pcmcia_disable() for (*detach) staging: comedi: das08_cs: use comedi_pcmcia_{enable,disable} staging: comedi: ni_daq_700: use comedi_pcmcia_{enable,disable} staging: comedi: ni_daq_700: use comedi_pcmcia_disable() for (*detach) drivers/staging/comedi/comedi_pcmcia.c | 46 ++++++++++++++++++++++++++++ drivers/staging/comedi/comedidev.h | 3 ++ drivers/staging/comedi/drivers/cb_das16_cs.c | 40 ++++-------------------- drivers/staging/comedi/drivers/das08_cs.c | 26 ++-------------- drivers/staging/comedi/drivers/ni_daq_700.c | 29 ++---------------- 5 files changed, 61 insertions(+), 83 deletions(-) -- 1.8.1.1.293.gfe73786 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel