PNP: add pnp_get_resource() interface
This adds a pnp_get_resource() that works the same way as platform_get_resource(). This will enable us to consolidate many pnp_resource_table references in one place, which will make it easier to make the table dynamic. 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>
This commit is contained in:
@@ -25,6 +25,7 @@ struct pnp_dev;
|
||||
/*
|
||||
* Resource Management
|
||||
*/
|
||||
struct resource *pnp_get_resource(struct pnp_dev *, unsigned int, unsigned int);
|
||||
|
||||
/* Use these instead of directly reading pnp_dev to get resource information */
|
||||
#define pnp_port_start(dev,bar) ((dev)->res.port_resource[(bar)].start)
|
||||
|
Reference in New Issue
Block a user