]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
greybus: vibrator-gb: fix up api changes
authorGreg Kroah-Hartman <greg@kroah.com>
Tue, 18 Nov 2014 20:21:27 +0000 (12:21 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 18 Nov 2014 20:21:27 +0000 (12:21 -0800)
responses changed in 'master' so fix up things so that the vibrator
driver works properly.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/vibrator-gb.c

index e4237518e04b9d1e53d9962da5f5a94704a8b160..b9ec772b24596d02fabc8e19b6fb7c87da64e1ca 100644 (file)
@@ -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);