|
@@ -148,11 +148,11 @@ static int pn533_submit_urb_for_ack(struct pn533_usb_phy *phy, gfp_t flags)
|
|
|
static int pn533_usb_send_ack(struct pn533 *dev, gfp_t flags)
|
|
|
{
|
|
|
struct pn533_usb_phy *phy = dev->phy;
|
|
|
- u8 ack[6] = {0x00, 0x00, 0xff, 0x00, 0xff, 0x00};
|
|
|
+ static const u8 ack[6] = {0x00, 0x00, 0xff, 0x00, 0xff, 0x00};
|
|
|
/* spec 7.1.1.3: Preamble, SoPC (2), ACK Code (2), Postamble */
|
|
|
int rc;
|
|
|
|
|
|
- phy->out_urb->transfer_buffer = ack;
|
|
|
+ phy->out_urb->transfer_buffer = (u8 *)ack;
|
|
|
phy->out_urb->transfer_buffer_length = sizeof(ack);
|
|
|
rc = usb_submit_urb(phy->out_urb, flags);
|
|
|
|