From: Thomas Hood <jdthood@mail.com>
To: linux-kernel@vger.kernel.org
Cc: Andrey Panin <pazke@orbita1.ru>
Subject: Re: [PATCH] PnP BIOS support for OPL3-SA1 sound driver
Date: 06 Nov 2001 08:35:57 -0500 [thread overview]
Message-ID: <1005053761.20873.26.camel@thanatos> (raw)
You define a table of struct pnpbios_device_id's containing
the IDs plus pointers to structs containing info about which
ioports reported by pnpbios do which things. Okay.
But rather than search for each ID in the table using
pnpbios_find_device(), why not use pnpbios_register_driver()?
To use this, you define a struct pnpbios_driver, which contains among
other things a pointer to your table of struct pnpbios_device_id's
and callback handles for adding ("probing") and removing the device.
You call pnpbios_register_driver() with a pointer to this
struct pnpbios_driver; it searches the devlist and table
for matches and for each one calls the callback function.
--
Thomas
next reply other threads:[~2001-11-06 13:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-06 13:35 Thomas Hood [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-11-05 13:22 Andrey Panin
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=1005053761.20873.26.camel@thanatos \
--to=jdthood@mail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pazke@orbita1.ru \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®