equal
deleted
inserted
replaced
51 extern const ec_code_msg_t al_status_messages[]; |
51 extern const ec_code_msg_t al_status_messages[]; |
52 |
52 |
53 /*****************************************************************************/ |
53 /*****************************************************************************/ |
54 |
54 |
55 void ec_slave_clear(struct kobject *); |
55 void ec_slave_clear(struct kobject *); |
|
56 void ec_slave_sdos_clear(struct kobject *); |
56 ssize_t ec_show_slave_attribute(struct kobject *, struct attribute *, char *); |
57 ssize_t ec_show_slave_attribute(struct kobject *, struct attribute *, char *); |
57 ssize_t ec_store_slave_attribute(struct kobject *, struct attribute *, |
58 ssize_t ec_store_slave_attribute(struct kobject *, struct attribute *, |
58 const char *, size_t); |
59 const char *, size_t); |
59 |
60 |
60 /*****************************************************************************/ |
61 /*****************************************************************************/ |
81 .release = ec_slave_clear, |
82 .release = ec_slave_clear, |
82 .sysfs_ops = &sysfs_ops, |
83 .sysfs_ops = &sysfs_ops, |
83 .default_attrs = def_attrs |
84 .default_attrs = def_attrs |
84 }; |
85 }; |
85 |
86 |
86 static struct kobj_type ktype_ec_slave_sdos = {}; |
87 static struct kobj_type ktype_ec_slave_sdos = { |
|
88 .release = ec_slave_sdos_clear |
|
89 }; |
87 |
90 |
88 /** \endcond */ |
91 /** \endcond */ |
89 |
92 |
90 /*****************************************************************************/ |
93 /*****************************************************************************/ |
91 |
94 |
271 |
274 |
272 if (slave->eeprom_data) kfree(slave->eeprom_data); |
275 if (slave->eeprom_data) kfree(slave->eeprom_data); |
273 if (slave->new_eeprom_data) kfree(slave->new_eeprom_data); |
276 if (slave->new_eeprom_data) kfree(slave->new_eeprom_data); |
274 |
277 |
275 kfree(slave); |
278 kfree(slave); |
|
279 } |
|
280 |
|
281 /*****************************************************************************/ |
|
282 |
|
283 /** |
|
284 */ |
|
285 |
|
286 void ec_slave_sdos_clear(struct kobject *kobj /**< kobject for SDOs */) |
|
287 { |
276 } |
288 } |
277 |
289 |
278 /*****************************************************************************/ |
290 /*****************************************************************************/ |
279 |
291 |
280 /** |
292 /** |