[PATCH 13/13] pcmcia: rework the irq_req_t typedef

Dominik Brodowski linux at dominikbrodowski.net
Sun Nov 29 07:34:53 EST 2009


Hey,

On Sun, Nov 29, 2009 at 11:14:56AM +0100, Wolfram Sang wrote:
> > diff --git a/include/pcmcia/cs.h b/include/pcmcia/cs.h
> > index afc2bfb..39376e6 100644
> > --- a/include/pcmcia/cs.h
> > +++ b/include/pcmcia/cs.h
> > @@ -126,7 +126,7 @@ typedef struct irq_req_t {
> >  #define IRQ_TYPE_TIME			0x01
> >  #define IRQ_TYPE_DYNAMIC_SHARING	0x02
> >  #define IRQ_FORCED_PULSE		0x04
> > -#define IRQ_FIRST_SHARED		0x08
> > +//#define IRQ_FIRST_SHARED		0x08
> >  //#define IRQ_HANDLE_PRESENT		0x10
> 
> Note: //-comments are discouraged according to CodingStyle.

Thanks, updated it.

> >  #define IRQ_PULSE_ALLOCATED		0x100
> >  
> > diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf.c b/sound/pcmcia/pdaudiocf/pdaudiocf.c
> > index 7717e01..b908c72 100644
> > --- a/sound/pcmcia/pdaudiocf/pdaudiocf.c
> > +++ b/sound/pcmcia/pdaudiocf/pdaudiocf.c
> > @@ -143,7 +143,7 @@ static int snd_pdacf_probe(struct pcmcia_device *link)
> >  	link->io.NumPorts1 = 16;
> >  
> >  	link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_FORCED_PULSE;
> > -	// link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING|IRQ_FIRST_SHARED;
> > +	// link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING;
> 
> Ditto. Plus, wouldn't it be easier to just drop this line? I couldn't find an
> explanation for this comment, it even contradicts with the line above.

Added a FIXME comment.

Thanks,
	Dominik



More information about the linux-pcmcia mailing list