[PATCH 6/6] driver: switch driver_d name to const char*
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Wed Jan 11 08:31:56 EST 2012
this will allow to save 200 bytes on a9g20 and 180 bytes on ti xlaoder
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
include/driver.h | 2 +-
include/usb/usb.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/driver.h b/include/driver.h
index 1751d3c..1b8b16d 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -105,7 +105,7 @@ struct device_d {
struct driver_d {
/*! The name of this driver. Used to match to
* the corresponding device. */
- char name[MAX_DRIVER_NAME];
+ const char *name;
struct list_head list;
diff --git a/include/usb/usb.h b/include/usb/usb.h
index 08fd1a1..a61a008 100644
--- a/include/usb/usb.h
+++ b/include/usb/usb.h
@@ -187,7 +187,7 @@ struct usb_device {
struct usb_device_id;
struct usb_driver {
- char *name;
+ const char *name;
int (*probe) (struct usb_device *, const struct usb_device_id *);
void (*disconnect)(struct usb_device *);
--
1.7.7
More information about the barebox
mailing list