summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJames Bottomley <james.bottomley@steeleye.com>2003-08-17 05:11:25 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-08-17 05:11:25 -0700
commitdb82f17d8a71a073f8c3f049bcac4fa668f68088 (patch)
tree335dc120599f6e51056eeddd1d90d1976b9be225 /include/linux
parent4bbe238c09fb53f8e8217cf084452d74eeebaaea (diff)
[PATCH] Fix MCA for driver core update
This should fix the MCA problems. I moved the name field to the struct mca_device because it was in such extensive use, and this approach caused the least impact.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mca.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mca.h b/include/linux/mca.h
index 137c3973c600..88e99ac603ea 100644
--- a/include/linux/mca.h
+++ b/include/linux/mca.h
@@ -73,6 +73,7 @@ struct mca_device {
void *proc_dev;
#endif
struct device dev;
+ char name[32];
};
#define to_mca_device(mdev) container_of(mdev, struct mca_device, dev)
@@ -92,6 +93,7 @@ struct mca_bus {
int number;
struct mca_bus_accessor_functions f;
struct device dev;
+ char name[32];
};
#define to_mca_bus(mdev) container_of(mdev, struct mca_bus, dev)
@@ -118,6 +120,12 @@ extern void *mca_device_transform_memory(struct mca_device *mca_dev,
void *mem);
extern int mca_device_claimed(struct mca_device *mca_dev);
extern void mca_device_set_claim(struct mca_device *mca_dev, int val);
+extern void mca_device_set_name(struct mca_device *mca_dev, const char *name);
+static inline char *mca_device_get_name(struct mca_device *mca_dev)
+{
+ return mca_dev ? mca_dev->name : NULL;
+}
+
extern enum MCA_AdapterStatus mca_device_status(struct mca_device *mca_dev);
extern struct bus_type mca_bus_type;