X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fattribute_container.h;h=8ff2749339484fdddd066bab4ab971916a510b93;hb=46f555f2731a14545a09ec06d27bd18e8e07069f;hp=f54b05b052b3106474dea7cd6c108820c4241abe;hpb=d0a7e574007fd547d72ec693bfa35778623d0738;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/attribute_container.h b/include/linux/attribute_container.h index f54b05b052b..8ff27493394 100644 --- a/include/linux/attribute_container.h +++ b/include/linux/attribute_container.h @@ -11,12 +11,11 @@ #include #include -#include +#include struct attribute_container { struct list_head node; - struct list_head containers; - spinlock_t containers_lock; + struct klist containers; struct class *class; struct class_device_attribute **attrs; int (*match)(struct attribute_container *, struct device *); @@ -64,6 +63,7 @@ int attribute_container_add_class_device_adapter(struct attribute_container *con struct class_device *classdev); void attribute_container_remove_attrs(struct class_device *classdev); void attribute_container_class_device_del(struct class_device *classdev); +struct attribute_container *attribute_container_classdev_to_container(struct class_device *); struct class_device *attribute_container_find_class_device(struct attribute_container *, struct device *); struct class_device_attribute **attribute_container_classdev_to_attrs(const struct class_device *classdev);