From: Adam Belay <ambx1@neo.rr.com>
To: Greg KH <greg@kroah.com>, Zwane Mwaikambo <zwane@holomorphy.com>
Cc: perex@suse.cz, linux-kernel@vger.kernel.org, pelaufer@adelphia.net
Subject: Re: [PATCH] Linux PnP Support V0.93 - 2.5.50
Date: Sat, 7 Dec 2002 14:57:53 +0000 [thread overview]
Message-ID: <20021207145753.GQ333@neo.rr.com> (raw)
In-Reply-To: <20021207192203.GB16559@kroah.com>
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
next prev parent reply other threads:[~2002-12-07 19:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2002-12-07 19:51 ` Zwane Mwaikambo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021207145753.GQ333@neo.rr.com \
--to=ambx1@neo.rr.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pelaufer@adelphia.net \
--cc=perex@suse.cz \
--cc=zwane@holomorphy.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.