u16 resp2;
} __packed;
-typedef struct hfa384x_usb_rridresp {
+struct hfa384x_usb_rridresp {
u16 type;
u16 frmlen;
u16 rid;
u8 data[HFA384x_RIDDATA_MAXLEN];
-} __packed hfa384x_usb_rridresp_t;
+} __packed;
typedef struct hfa384x_usb_statusresp hfa384x_usb_wmemresp_t;
struct hfa384x_usb_infofrm infofrm;
struct hfa384x_usb_statusresp cmdresp;
struct hfa384x_usb_statusresp wridresp;
- hfa384x_usb_rridresp_t rridresp;
+ struct hfa384x_usb_rridresp rridresp;
hfa384x_usb_wmemresp_t wmemresp;
hfa384x_usb_rmemresp_t rmemresp;
hfa384x_usb_bufavail_t bufavail;
hfa384x_cmdresult_t *result);
static void
-usbctlx_get_rridresult(const hfa384x_usb_rridresp_t *rridresp,
+usbctlx_get_rridresult(const struct hfa384x_usb_rridresp *rridresp,
hfa384x_rridresult_t *result);
/*---------------------------------------------------*/
}
static void
-usbctlx_get_rridresult(const hfa384x_usb_rridresp_t *rridresp,
+usbctlx_get_rridresult(const struct hfa384x_usb_rridresp *rridresp,
hfa384x_rridresult_t *result)
{
result->rid = le16_to_cpu(rridresp->rid);
struct usbctlx_rrid_completor {
struct usbctlx_completor head;
- const hfa384x_usb_rridresp_t *rridresp;
+ const struct hfa384x_usb_rridresp *rridresp;
void *riddata;
unsigned int riddatalen;
};
static inline struct usbctlx_completor *init_rrid_completor(
struct usbctlx_rrid_completor
*completor,
- const hfa384x_usb_rridresp_t
+ const struct hfa384x_usb_rridresp
*rridresp,
void *riddata,
unsigned int riddatalen)