Boot on AC is a policy which makes the device boot from S5 when AC power is connected. This is useful for users who want to run their device headless or with a dock.
Showing the changes to include/linux (1 of 5 files). Show all
Unified · Split
| @@ -194,4 +194,16 @@ int wilco_ec_get_byte_property(struct wilco_ec_device *ec, u32 property_id, · 193 unmodified lines | ||
| 194 | 194 | int wilco_ec_set_byte_property(struct wilco_ec_device *ec, u32 property_id, |
| 195 | 195 | u8 val); |
| 196 | 196 | |
| 197 | +/** | |
| 198 | + * wilco_ec_add_sysfs() - Create sysfs entries | |
| 199 | + * @ec: Wilco EC device | |
| 200 | + * | |
| 201 | + * wilco_ec_remove_sysfs() needs to be called afterwards | |
| 202 | + * to perform the necessary cleanup. | |
| 203 | + * | |
| 204 | + * Return: 0 on success or negative error code on failure. | |
| 205 | + */ | |
| 206 | +int wilco_ec_add_sysfs(struct wilco_ec_device *ec); | |
| 207 | +void wilco_ec_remove_sysfs(struct wilco_ec_device *ec); | |
| 208 | + | |
| 197 | 209 | #endif /* WILCO_EC_H */ |