greybus: Added a sysfs entry to power down the SVC
authorGeorgi Dobrev <dobrev_georgi@projectara.com>
Thu, 24 Mar 2016 11:37:21 +0000 (13:37 +0200)
committerAkash Choudhari <akashtc@google.com>
Fri, 1 Apr 2016 21:41:49 +0000 (14:41 -0700)
commit88a3011e91f7c557798301d47f830320580795cf
treeb97ca845f74a2053459d96a8fe87c8619e5fd0be
parentd9984cf0f24860bc3a9d3c8f48d90a148827c5c6
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>
drivers/staging/greybus/greybus_protocols.h
drivers/staging/greybus/svc.c
drivers/staging/greybus/svc.h