X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fbase%2Fbase.h;h=8d1e8bd48632e68b001755d673c3f90bfad47b03;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=da16cc5c9e30d43528c66084bcc1ce697e9a9751;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/drivers/base/base.h b/drivers/base/base.h index da16cc5c9..8d1e8bd48 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h @@ -6,12 +6,13 @@ extern void bus_remove_driver(struct device_driver *); static inline struct class_device *to_class_dev(struct kobject *obj) { - return container_of(obj,struct class_device,kobj); + return container_of(obj, struct class_device, kobj); } + static inline struct class_device_attribute *to_class_dev_attr(struct attribute *_attr) { - return container_of(_attr,struct class_device_attribute,attr); + return container_of(_attr, struct class_device_attribute, attr); }