chiark / gitweb /
[PATCH] another patch for path problem
[elogind.git] / namedev.h
index d5aaae202cf28e4fa7eefb9f6a9b5e26850ae45f..5ea843e9b74d2645857c50ca00ab825830bf92d8 100644 (file)
--- a/namedev.h
+++ b/namedev.h
@@ -50,7 +50,6 @@ struct config_device {
        struct list_head node;
 
        enum config_type type;
-
        char bus[BUS_SIZE];
        char sysfs_file[FILE_SIZE];
        char sysfs_value[VALUE_SIZE];
@@ -58,13 +57,16 @@ struct config_device {
        char place[PLACE_SIZE];
        char kernel_name[NAME_SIZE];
        char exec_program[FILE_SIZE];
-       
+
        /* what to set the device to */
-       struct device_attr attr;
+       char name[NAME_SIZE];
+       char owner[OWNER_SIZE];
+       char group[GROUP_SIZE];
+       mode_t mode;
 };
 
 
 extern int namedev_init(void);
-extern int namedev_name_device(struct sysfs_class_device *class_dev, struct device_attr *attr);
+extern int namedev_name_device(struct sysfs_class_device *class_dev, struct udevice *dev);
 
 #endif