diff options
| author | Nick Crews <ncrews@chromium.org> | 2019-04-16 21:20:47 -0400 |
|---|---|---|
| committer | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2019-05-20 04:18:09 -0400 |
| commit | 4c1ca625c622b7a9f04c2949fd1ffdc6effa86de (patch) | |
| tree | fc7583d5a1a7f400c05be4d6e068cede5ca35472 /include/linux/platform_data | |
| parent | 0c0b7ea23aed0b55ef2f9803f13ddaae1943713d (diff) | |
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>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/wilco-ec.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/platform_data/wilco-ec.h b/include/linux/platform_data/wilco-ec.h index 50a21bd5fd44..af68fc0563cc 100644 --- a/include/linux/platform_data/wilco-ec.h +++ b/include/linux/platform_data/wilco-ec.h | |||
| @@ -194,4 +194,16 @@ int wilco_ec_get_byte_property(struct wilco_ec_device *ec, u32 property_id, | |||
| 194 | int wilco_ec_set_byte_property(struct wilco_ec_device *ec, u32 property_id, | 194 | int 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 | */ | ||
| 206 | int wilco_ec_add_sysfs(struct wilco_ec_device *ec); | ||
| 207 | void wilco_ec_remove_sysfs(struct wilco_ec_device *ec); | ||
| 208 | |||
| 197 | #endif /* WILCO_EC_H */ | 209 | #endif /* WILCO_EC_H */ |
