History

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.

Nick Crews committed 7 years ago

Commit 4c1ca621 parent 0c0b7ea5 files · +108 −1Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/platform_data/wilco-ec.h+12−0
@@ -194,4 +194,16 @@ int wilco_ec_get_byte_property(struct wilco_ec_device *ec, u32 property_id, · 193 unmodified lines
194int wilco_ec_set_byte_property(struct wilco_ec_device *ec, u32 property_id,194int wilco_ec_set_byte_property(struct wilco_ec_device *ec, u32 property_id,
195 u8 val);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 */
206int wilco_ec_add_sysfs(struct wilco_ec_device *ec);
207void wilco_ec_remove_sysfs(struct wilco_ec_device *ec);
208
197#endif /* WILCO_EC_H */209#endif /* WILCO_EC_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t