'cmd->code' looks better then 'cmd->cmd_code'
Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
struct pn533_cmd {
struct list_head queue;
- u8 cmd_code;
+ u8 code;
struct sk_buff *req;
struct sk_buff *resp;
int resp_len;
static bool pn533_rx_frame_is_cmd_response(struct pn533 *dev, void *frame)
{
return (dev->ops->get_cmd_code(frame) ==
- PN533_CMD_RESPONSE(dev->cmd->cmd_code));
+ PN533_CMD_RESPONSE(dev->cmd->code));
}
if (!cmd)
return -ENOMEM;
- cmd->cmd_code = cmd_code;
+ cmd->code = cmd_code;
cmd->req = req;
cmd->resp = resp;
cmd->resp_len = resp_len;
return -ENOMEM;
}
- cmd->cmd_code = cmd_code;
+ cmd->code = cmd_code;
cmd->req = req;
cmd->resp = resp;
cmd->resp_len = resp_len;