master/master.c
changeset 184 2fc86cec12df
parent 182 8c0bc99229a9
child 188 c0e49f4a1c07
equal deleted inserted replaced
183:8ae1e011e96c 184:2fc86cec12df
    27 
    27 
    28 ssize_t ec_show_master_attribute(struct kobject *, struct attribute *, char *);
    28 ssize_t ec_show_master_attribute(struct kobject *, struct attribute *, char *);
    29 
    29 
    30 /*****************************************************************************/
    30 /*****************************************************************************/
    31 
    31 
    32 static struct attribute attr_slave_count = {
    32 EC_SYSFS_READ_ATTR(slave_count);
    33     .name = "slave_count",
       
    34     .owner = THIS_MODULE,
       
    35     .mode = S_IRUGO
       
    36 };
       
    37 
    33 
    38 static struct attribute *ec_def_attrs[] = {
    34 static struct attribute *ec_def_attrs[] = {
    39     &attr_slave_count,
    35     &attr_slave_count,
    40     NULL,
    36     NULL,
    41 };
    37 };