Commit 4b992018 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: vibrator-gb: fix up api changes

responses changed in 'master' so fix up things so that the vibrator
driver works properly.
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 025742cc
...@@ -134,7 +134,7 @@ static int turn_on(struct gb_vibrator_device *vib, u16 timeout_ms) ...@@ -134,7 +134,7 @@ static int turn_on(struct gb_vibrator_device *vib, u16 timeout_ms)
sizeof(*request), sizeof(*response)); sizeof(*request), sizeof(*response));
if (!operation) if (!operation)
return -ENOMEM; return -ENOMEM;
request = operation->request_payload; request = operation->request.payload;
request->timeout_ms = cpu_to_le16(timeout_ms); request->timeout_ms = cpu_to_le16(timeout_ms);
/* Synchronous operation--no callback */ /* Synchronous operation--no callback */
...@@ -145,7 +145,7 @@ static int turn_on(struct gb_vibrator_device *vib, u16 timeout_ms) ...@@ -145,7 +145,7 @@ static int turn_on(struct gb_vibrator_device *vib, u16 timeout_ms)
goto out; goto out;
} }
response = operation->response_payload; response = operation->response.payload;
if (response->status) { if (response->status) {
gb_connection_err(connection, "send data response %hhu", gb_connection_err(connection, "send data response %hhu",
response->status); response->status);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment