Skip to contentSkip to conversation

Make "dev_get_resource" publicly available

PATCH Applied Alexander Shiyan 2 participants 2 messages Feb 16, 2013 – Feb 18, 2013 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make "dev_get_resource" publicly available

---
 drivers/base/driver.c | 2 +-
 include/driver.h      | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
drivers/base/driver.c +1 -1
index d4066fc..fa30c68 100644
@@ -230,7 +230,7 @@ int register_driver(struct driver_d *drv)
 }
 EXPORT_SYMBOL(register_driver);
 
-static struct resource *dev_get_resource(struct device_d *dev, int num)
+struct resource *dev_get_resource(struct device_d *dev, int num)
 {
 	int i, n = 0;
 
include/driver.h +4 -0
index 31f5d69..092a46b 100644
@@ -193,6 +193,10 @@ static inline const char *dev_name(const struct device_d *dev)
 }
 
 /*
+ * get resource 'num' for a device
+ */
+struct resource *dev_get_resource(struct device_d *dev, int num);
+/*
  * get resource base 'name' for a device
  */
 struct resource *dev_get_resource_by_name(struct device_d *dev,
Signature · 7 lines
1.7.12.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 2 lines · Alexander Shiyan

Applied, thanks

Sascha

Quoted 42 lines
---
 drivers/base/driver.c | 2 +-
 include/driver.h      | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
drivers/base/driver.c +1 -1
index d4066fc..fa30c68 100644
@@ -230,7 +230,7 @@ int register_driver(struct driver_d *drv)
 }
 EXPORT_SYMBOL(register_driver);
 
-static struct resource *dev_get_resource(struct device_d *dev, int num)
+struct resource *dev_get_resource(struct device_d *dev, int num)
 {
 	int i, n = 0;
 
include/driver.h +4 -0
index 31f5d69..092a46b 100644
@@ -193,6 +193,10 @@ static inline const char *dev_name(const struct device_d *dev)
 }
 
 /*
+ * get resource 'num' for a device
+ */
+struct resource *dev_get_resource(struct device_d *dev, int num);
+/*
  * get resource base 'name' for a device
  */
 struct resource *dev_get_resource_by_name(struct device_d *dev,
Signature · 7 lines
1.7.12.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox