diff options
author | Georgi Dobrev <dobrev_georgi@projectara.com> | 2016-03-24 13:37:21 +0200 |
---|---|---|
committer | Akash Choudhari <akashtc@google.com> | 2016-04-01 14:41:49 -0700 |
commit | 88a3011e91f7c557798301d47f830320580795cf (patch) | |
tree | b97ca845f74a2053459d96a8fe87c8619e5fd0be /drivers/staging/greybus/svc.h | |
parent | d9984cf0f24860bc3a9d3c8f48d90a148827c5c6 (diff) |
greybus: Added a sysfs entry to power down the SVC
Added a sysfs entry called pwr_off. When a "1" is passed to it,
it sends a GB_SVC_TYPE_PWR_DOWN command to the SVC, powering it down
along with the switch and INA231 chips.
Testing Done: Tested on EVT1_5, works.
Signed-off-by: Georgi Dobrev <dobrev_georgi@projectara.com>
Diffstat (limited to 'drivers/staging/greybus/svc.h')
-rw-r--r-- | drivers/staging/greybus/svc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/svc.h b/drivers/staging/greybus/svc.h index 8950baff9aef..09d868877c82 100644 --- a/drivers/staging/greybus/svc.h +++ b/drivers/staging/greybus/svc.h @@ -71,6 +71,7 @@ void gb_svc_watchdog_destroy(struct gb_svc *svc); bool gb_svc_watchdog_enabled(struct gb_svc *svc); int gb_svc_watchdog_enable(struct gb_svc *svc); int gb_svc_watchdog_disable(struct gb_svc *svc); +int gb_svc_pwr_off(struct gb_svc *svc); int gb_svc_protocol_init(void); void gb_svc_protocol_exit(void); |