staging: wlang-ng: avoid new typedef: hfa384x_rridresult_t

This patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs

It applies for typedef hfa384x_rridresult_t

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sergio Paracuellos 2016-09-28 20:20:15 +02:00 коммит произвёл Greg Kroah-Hartman
Родитель 501f5f96b3
Коммит b3fd890e1b
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -1152,11 +1152,11 @@ struct hfa384x_cmdresult {
/* The following hfa384x_* structures are arguments to /* The following hfa384x_* structures are arguments to
* the usercb() for the different CTLX types. * the usercb() for the different CTLX types.
*/ */
typedef struct hfa384x_rridresult { struct hfa384x_rridresult {
u16 rid; u16 rid;
const void *riddata; const void *riddata;
unsigned int riddata_len; unsigned int riddata_len;
} hfa384x_rridresult_t; };
enum ctlx_state { enum ctlx_state {
CTLX_START = 0, /* Start state, not queued */ CTLX_START = 0, /* Start state, not queued */

Просмотреть файл

@ -217,7 +217,7 @@ usbctlx_get_status(const struct hfa384x_usb_statusresp *cmdresp,
static void static void
usbctlx_get_rridresult(const struct hfa384x_usb_rridresp *rridresp, usbctlx_get_rridresult(const struct hfa384x_usb_rridresp *rridresp,
hfa384x_rridresult_t *result); struct hfa384x_rridresult *result);
/*---------------------------------------------------*/ /*---------------------------------------------------*/
/* Low level req/resp CTLX formatters and submitters */ /* Low level req/resp CTLX formatters and submitters */
@ -637,7 +637,7 @@ usbctlx_get_status(const struct hfa384x_usb_statusresp *cmdresp,
static void static void
usbctlx_get_rridresult(const struct hfa384x_usb_rridresp *rridresp, usbctlx_get_rridresult(const struct hfa384x_usb_rridresp *rridresp,
hfa384x_rridresult_t *result) struct hfa384x_rridresult *result)
{ {
result->rid = le16_to_cpu(rridresp->rid); result->rid = le16_to_cpu(rridresp->rid);
result->riddata = rridresp->data; result->riddata = rridresp->data;
@ -693,7 +693,7 @@ struct usbctlx_rrid_completor {
static int usbctlx_rrid_completor_fn(struct usbctlx_completor *head) static int usbctlx_rrid_completor_fn(struct usbctlx_completor *head)
{ {
struct usbctlx_rrid_completor *complete; struct usbctlx_rrid_completor *complete;
hfa384x_rridresult_t rridresult; struct hfa384x_rridresult rridresult;
complete = (struct usbctlx_rrid_completor *)head; complete = (struct usbctlx_rrid_completor *)head;
usbctlx_get_rridresult(complete->rridresp, &rridresult); usbctlx_get_rridresult(complete->rridresp, &rridresult);