clarify set failure due to power down

am: f709758

* commit 'f7097585dca47b8124c5c9e31cd8d381f1c1c97d':
  clarify set failure due to power down

Change-Id: Id5cb76e31e723496b8d73d406082f209b97dd5ba
This commit is contained in:
Keun-young Park 2016-04-26 01:34:19 +00:00 committed by android-build-merger
commit 52dcb04348

View file

@ -1700,6 +1700,8 @@ typedef struct vehicle_hw_device {
* Setting some properties require having initial state available. Depending on the vehicle hal,
* such initial data may not be available for short time after init. In such case, set call
* can return -EAGAIN like get call.
* For a property with separate power control, set can fail if the property is not powered on.
* In such case, hal should return -ESHUTDOWN error.
*/
int (*set)(struct vehicle_hw_device* device, const vehicle_prop_value_t *data);