]> err.no Git - linux-2.6/commitdiff
PNP: make pnp_add_id() internal to PNP core
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Mon, 28 Apr 2008 22:33:51 +0000 (16:33 -0600)
committerLen Brown <len.brown@intel.com>
Tue, 29 Apr 2008 07:22:15 +0000 (03:22 -0400)
pnp_add_id() doesn't need to be exposed outside the PNP core, so
move the declaration to an internal header file.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-By: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/pnp/base.h
drivers/pnp/pnpacpi/core.c
drivers/pnp/pnpbios/core.c
include/linux/pnp.h

index 31a633f6554769c46cd5676d13a758a104137738..abefcc3515217ab4d3d3ae9eaaf0a042542429b0 100644 (file)
@@ -1,5 +1,6 @@
 extern spinlock_t pnp_lock;
 void *pnp_alloc(long size);
+int pnp_add_id(struct pnp_id *id, struct pnp_dev *dev);
 int pnp_interface_attach_device(struct pnp_dev *dev);
 void pnp_fixup_device(struct pnp_dev *dev);
 void pnp_free_option(struct pnp_option *option);
index 53f91068d0b0b19ad33748d02c848d62c535852a..4807d76f8a049d224774c2b6fc4f0edab0817e85 100644 (file)
@@ -25,6 +25,7 @@
 #include <acpi/acpi_bus.h>
 #include <acpi/actypes.h>
 
+#include "../base.h"
 #include "pnpacpi.h"
 
 static int num = 0;
index a8a51500e1e9aae008cfc1cddc9ef547f4b6e10e..2a5353bceb24809ab046a994484de75c588e0432 100644 (file)
@@ -69,6 +69,7 @@
 #include <asm/system.h>
 #include <asm/byteorder.h>
 
+#include "../base.h"
 #include "pnpbios.h"
 
 /*
index b2f05c230f4b8db61984950489173980c003178a..9a05ab5515b69117ad58caea8e91129075a4f829 100644 (file)
@@ -403,7 +403,6 @@ void pnp_resource_change(struct resource *resource, resource_size_t start,
 /* protocol helpers */
 int pnp_is_active(struct pnp_dev *dev);
 int compare_pnp_id(struct pnp_id *pos, const char *id);
-int pnp_add_id(struct pnp_id *id, struct pnp_dev *dev);
 int pnp_register_driver(struct pnp_driver *drv);
 void pnp_unregister_driver(struct pnp_driver *drv);
 
@@ -450,7 +449,6 @@ static inline void pnp_resource_change(struct resource *resource, resource_size_
 /* protocol helpers */
 static inline int pnp_is_active(struct pnp_dev *dev) { return 0; }
 static inline int compare_pnp_id(struct pnp_id *pos, const char *id) { return -ENODEV; }
-static inline int pnp_add_id(struct pnp_id *id, struct pnp_dev *dev) { return -ENODEV; }
 static inline int pnp_register_driver(struct pnp_driver *drv) { return -ENODEV; }
 static inline void pnp_unregister_driver(struct pnp_driver *drv) { }