greybus: es2: clean up ARPC symbol names

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>
This commit is contained in:
Johan Hovold 2016-08-03 14:09:31 +02:00 committed by Greg Kroah-Hartman
parent 06d8b7d9cf
commit c468999e6a
2 changed files with 4 additions and 4 deletions

View 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,

View 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;