public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Linux PnP Support V0.93 - 2.5.50
@ 2002-12-01 14:32 Adam Belay
  2002-12-07 18:24 ` Zwane Mwaikambo
  0 siblings, 1 reply; 5+ messages in thread
From: Adam Belay @ 2002-12-01 14:32 UTC (permalink / raw)
  To: greg, perex, linux-kernel, pelaufer, zwane

[-- Attachment #1: Type: text/plain, Size: 342 bytes --]

Attached is a patch, gzipped for size, that updates the 2.5.50 to the latest pnp 
version.  It includes all 9 of the previously submitted patches.

Highlights are as follows:
-PnP BIOS fixes
-Several new macros
-PnP Card Services
-Various bug fixes
-more drivers converted to the new APIs

PnP developers please use this patch.

thanks,
Adam

[-- Attachment #2: pnp-93-2.5.50.patch.gz --]
[-- Type: application/x-gunzip, Size: 15722 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Linux PnP Support V0.93 - 2.5.50
  2002-12-07 19:22   ` Greg KH
@ 2002-12-07 14:57     ` Adam Belay
  2002-12-07 19:51     ` Zwane Mwaikambo
  1 sibling, 0 replies; 5+ messages in thread
From: Adam Belay @ 2002-12-07 14:57 UTC (permalink / raw)
  To: Greg KH, Zwane Mwaikambo; +Cc: perex, linux-kernel, pelaufer

On Sat, Dec 07, 2002 at 11:22:04AM -0800, Greg KH wrote:
> On Sat, Dec 07, 2002 at 01:24:29PM -0500, Zwane Mwaikambo wrote:
> > On Sun, 1 Dec 2002, Adam Belay wrote:
> > 
> > > Attached is a patch, gzipped for size, that updates the 2.5.50 to the latest pnp
> > > version.  It includes all 9 of the previously submitted patches.
> > >
> > > Highlights are as follows:
> > > -PnP BIOS fixes
> > > -Several new macros
> > > -PnP Card Services
> > > -Various bug fixes
> > > -more drivers converted to the new APIs
> > >
> > > PnP developers please use this patch.
> > 
> > Could we get a void* in pnp_dev? I'm finding myself resorting to
> > driver internal arrays in order to track locations of device private structures.
> 
> Use the struct device void pointer for stuff like this.  There's some
> helpful functions to get access to this easily (but don't seem to see
> them in pnp.h at first glance...)


Yes, there are helper functions for this, they can all be found in pnp.h.

static inline void *pnp_get_drvdata (struct pnp_dev *pdev)
{
	return dev_get_drvdata(&pdev->dev);
}

static inline void pnp_set_drvdata (struct pnp_dev *pdev, void *data)
{
	dev_set_drvdata(&pdev->dev, data);
}

static inline void *pnpc_get_drvdata (struct pnp_card *pcard)
{
	return dev_get_drvdata(&pcard->dev);
}

static inline void pnpc_set_drvdata (struct pnp_card *pcard, void *data)
{
	dev_set_drvdata(&pcard->dev, data);
}

thanks,
Adam

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Linux PnP Support V0.93 - 2.5.50
  2002-12-01 14:32 [PATCH] Linux PnP Support V0.93 - 2.5.50 Adam Belay
@ 2002-12-07 18:24 ` Zwane Mwaikambo
  2002-12-07 19:22   ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Zwane Mwaikambo @ 2002-12-07 18:24 UTC (permalink / raw)
  To: Adam Belay; +Cc: greg, perex, linux-kernel, pelaufer

On Sun, 1 Dec 2002, Adam Belay wrote:

> Attached is a patch, gzipped for size, that updates the 2.5.50 to the latest pnp
> version.  It includes all 9 of the previously submitted patches.
>
> Highlights are as follows:
> -PnP BIOS fixes
> -Several new macros
> -PnP Card Services
> -Various bug fixes
> -more drivers converted to the new APIs
>
> PnP developers please use this patch.

Could we get a void* in pnp_dev? I'm finding myself resorting to
driver internal arrays in order to track locations of device private structures.

Thanks,
	Zwane
-- 
function.linuxpower.ca

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Linux PnP Support V0.93 - 2.5.50
  2002-12-07 18:24 ` Zwane Mwaikambo
@ 2002-12-07 19:22   ` Greg KH
  2002-12-07 14:57     ` Adam Belay
  2002-12-07 19:51     ` Zwane Mwaikambo
  0 siblings, 2 replies; 5+ messages in thread
From: Greg KH @ 2002-12-07 19:22 UTC (permalink / raw)
  To: Zwane Mwaikambo; +Cc: Adam Belay, perex, linux-kernel, pelaufer

On Sat, Dec 07, 2002 at 01:24:29PM -0500, Zwane Mwaikambo wrote:
> On Sun, 1 Dec 2002, Adam Belay wrote:
> 
> > Attached is a patch, gzipped for size, that updates the 2.5.50 to the latest pnp
> > version.  It includes all 9 of the previously submitted patches.
> >
> > Highlights are as follows:
> > -PnP BIOS fixes
> > -Several new macros
> > -PnP Card Services
> > -Various bug fixes
> > -more drivers converted to the new APIs
> >
> > PnP developers please use this patch.
> 
> Could we get a void* in pnp_dev? I'm finding myself resorting to
> driver internal arrays in order to track locations of device private structures.

Use the struct device void pointer for stuff like this.  There's some
helpful functions to get access to this easily (but don't seem to see
them in pnp.h at first glance...)

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Linux PnP Support V0.93 - 2.5.50
  2002-12-07 19:22   ` Greg KH
  2002-12-07 14:57     ` Adam Belay
@ 2002-12-07 19:51     ` Zwane Mwaikambo
  1 sibling, 0 replies; 5+ messages in thread
From: Zwane Mwaikambo @ 2002-12-07 19:51 UTC (permalink / raw)
  To: Greg KH; +Cc: Adam Belay, perex, linux-kernel, pelaufer

On Sat, 7 Dec 2002, Greg KH wrote:

> > Could we get a void* in pnp_dev? I'm finding myself resorting to
> > driver internal arrays in order to track locations of device private structures.
>
> Use the struct device void pointer for stuff like this.  There's some
> helpful functions to get access to this easily (but don't seem to see
> them in pnp.h at first glance...)

Thanks these should do it.

static inline void *pnp_get_drvdata (struct pnp_dev *pdev)
static inline void pnp_set_drvdata (struct pnp_dev *pdev, void *data)

	Zwane
-- 
function.linuxpower.ca

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-12-07 19:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-01 14:32 [PATCH] Linux PnP Support V0.93 - 2.5.50 Adam Belay
2002-12-07 18:24 ` Zwane Mwaikambo
2002-12-07 19:22   ` Greg KH
2002-12-07 14:57     ` Adam Belay
2002-12-07 19:51     ` Zwane Mwaikambo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox