{
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;
}
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,
__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;