Skip to content

Commit bc033c9

Browse files
Rene Hermantorvalds
authored andcommitted
pnp: add pnp_build_option() to the API
The subsequent AD181x quirk patch would like this as part of the API. pnp_register_dependent_option() adds to the same dependent chain the quirk is walking which is fairly unclean. This enables a private option chain build which it can then just add onto the end when done. Signed-off-by: Rene Herman <rene.herman@gmail.com> Tested-by: Uwe Bugla <uwe.bugla@gmx.de> Acked-by: Uwe Bugla <uwe.bugla@gmx.de> Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Cc: Takashi Iwai <tiwai@suse.de> Cc: Len Brown <len.brown@intel.com Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 726a7a3 commit bc033c9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/pnp/base.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ void pnp_remove_card(struct pnp_card *card);
1919
int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev);
2020
void pnp_remove_card_device(struct pnp_dev *dev);
2121

22+
struct pnp_option *pnp_build_option(int priority);
2223
struct pnp_option *pnp_register_independent_option(struct pnp_dev *dev);
2324
struct pnp_option *pnp_register_dependent_option(struct pnp_dev *dev,
2425
int priority);

drivers/pnp/resource.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static int pnp_reserve_mem[16] = {[0 ... 15] = -1 }; /* reserve (don't use) some
2828
* option registration
2929
*/
3030

31-
static struct pnp_option *pnp_build_option(int priority)
31+
struct pnp_option *pnp_build_option(int priority)
3232
{
3333
struct pnp_option *option = pnp_alloc(sizeof(struct pnp_option));
3434

0 commit comments

Comments
 (0)