platform/chrome: wilco_ec: Add Boot on AC support
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. Signed-off-by: Nick Crews <ncrews@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
This commit is contained in:

committed by
Enric Balletbo i Serra

parent
0c0b7ea23a
commit
4c1ca625c6
@@ -194,4 +194,16 @@ int wilco_ec_get_byte_property(struct wilco_ec_device *ec, u32 property_id,
|
||||
int wilco_ec_set_byte_property(struct wilco_ec_device *ec, u32 property_id,
|
||||
u8 val);
|
||||
|
||||
/**
|
||||
* wilco_ec_add_sysfs() - Create sysfs entries
|
||||
* @ec: Wilco EC device
|
||||
*
|
||||
* wilco_ec_remove_sysfs() needs to be called afterwards
|
||||
* to perform the necessary cleanup.
|
||||
*
|
||||
* Return: 0 on success or negative error code on failure.
|
||||
*/
|
||||
int wilco_ec_add_sysfs(struct wilco_ec_device *ec);
|
||||
void wilco_ec_remove_sysfs(struct wilco_ec_device *ec);
|
||||
|
||||
#endif /* WILCO_EC_H */
|
||||
|
Reference in New Issue
Block a user