Re: [PATCH] Allow passing platform_data to devices attached to AC97 bus

Takashi Iwai
2009-07-21T15:17:05Z

At Tue, 21 Jul 2009 17:11:03 +0200,
Robert Jarzmik wrote:
>
> Marek Vasut <marek.vasut@gmail.com> writes:
>
> > diff --git a/arch/arm/mach-pxa/include/mach/audio.h b/arch/arm/mach-pxa/include/mach/audio.h
> > index 16eb025..8825b18 100644
> > --- a/arch/arm/mach-pxa/include/mach/audio.h
> > +++ b/arch/arm/mach-pxa/include/mach/audio.h
> > @@ -20,6 +20,7 @@ typedef struct {
> > void (*resume)(void *);
> > void *priv;
> > int reset_gpio;
> > + void *codec_pdata[4];
> I don't understand where that '4' comes from. Would you explain ?

It's defacto-standard max of AC97 slots. But, yes, a magic number
should be defined explicitly.

Takashi