greybus: es2: clean up ARPC symbol names
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 3 Aug 2016 12:09:31 +0000 (14:09 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 3 Aug 2016 13:42:38 +0000 (15:42 +0200)
Add a _req suffix to request message structures, and a _TYPE_ infix to
request type defines.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es2.c
drivers/staging/greybus/greybus_protocols.h

index 2020187..0850b59 100644 (file)
@@ -609,7 +609,7 @@ static int cport_reset(struct gb_host_device *hd, u16 cport_id)
 {
        struct es2_ap_dev *es2 = hd_to_es2(hd);
        struct usb_device *udev = es2->usb_dev;
-       struct arpc_cport_reset req;
+       struct arpc_cport_reset_req req;
        int retval;
        int result = 0;
 
@@ -621,7 +621,7 @@ static int cport_reset(struct gb_host_device *hd, u16 cport_id)
        }
 
        req.cport_id = cpu_to_le16(cport_id);
-       retval = arpc_sync(es2, ARPC_CPORT_RESET, &req, sizeof(req),
+       retval = arpc_sync(es2, ARPC_TYPE_CPORT_RESET, &req, sizeof(req),
                           &result, ES2_TIMEOUT);
        if (retval == -EREMOTEIO) {
                dev_err(&udev->dev, "failed to reset cport %u: %d\n", cport_id,
index d8f8194..8484f05 100644 (file)
@@ -292,9 +292,9 @@ struct arpc_response_message {
        __u8    result;         /* Result of RPC */
 } __packed;
 
-#define ARPC_CPORT_RESET                       0x00
+#define ARPC_TYPE_CPORT_RESET                  0x00
 
-struct arpc_cport_reset {
+struct arpc_cport_reset_req {
        __le16 cport_id;
 } __packed;