From: Greg Kroah-Hartman Date: Tue, 18 Nov 2014 20:21:27 +0000 (-0800) Subject: greybus: vibrator-gb: fix up api changes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4b992018da759ff471872a3483b03cb0a649b698;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/vibrator-gb.c b/drivers/staging/greybus/vibrator-gb.c index e4237518e04b..b9ec772b2459 100644 --- a/drivers/staging/greybus/vibrator-gb.c +++ b/drivers/staging/greybus/vibrator-gb.c @@ -134,7 +134,7 @@ static int turn_on(struct gb_vibrator_device *vib, u16 timeout_ms) sizeof(*request), sizeof(*response)); if (!operation) return -ENOMEM; - request = operation->request_payload; + request = operation->request.payload; request->timeout_ms = cpu_to_le16(timeout_ms); /* Synchronous operation--no callback */ @@ -145,7 +145,7 @@ static int turn_on(struct gb_vibrator_device *vib, u16 timeout_ms) goto out; } - response = operation->response_payload; + response = operation->response.payload; if (response->status) { gb_connection_err(connection, "send data response %hhu", response->status);