diff options
-rw-r--r-- | drivers/nfc/pn533/i2c.c | 2 | ||||
-rw-r--r-- | drivers/nfc/pn533/usb.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/nfc/pn533/i2c.c b/drivers/nfc/pn533/i2c.c index 2c2fb9cfe10a..8f60ce039b0d 100644 --- a/drivers/nfc/pn533/i2c.c +++ b/drivers/nfc/pn533/i2c.c | |||
@@ -51,7 +51,7 @@ static int pn533_i2c_send_ack(struct pn533 *dev, gfp_t flags) | |||
51 | { | 51 | { |
52 | struct pn533_i2c_phy *phy = dev->phy; | 52 | struct pn533_i2c_phy *phy = dev->phy; |
53 | struct i2c_client *client = phy->i2c_dev; | 53 | struct i2c_client *client = phy->i2c_dev; |
54 | u8 ack[6] = {0x00, 0x00, 0xff, 0x00, 0xff, 0x00}; | 54 | static const u8 ack[6] = {0x00, 0x00, 0xff, 0x00, 0xff, 0x00}; |
55 | /* spec 6.2.1.3: Preamble, SoPC (2), ACK Code (2), Postamble */ | 55 | /* spec 6.2.1.3: Preamble, SoPC (2), ACK Code (2), Postamble */ |
56 | int rc; | 56 | int rc; |
57 | 57 | ||
diff --git a/drivers/nfc/pn533/usb.c b/drivers/nfc/pn533/usb.c index 000159ea9c5f..8ed203ea21ea 100644 --- a/drivers/nfc/pn533/usb.c +++ b/drivers/nfc/pn533/usb.c | |||
@@ -148,11 +148,11 @@ static int pn533_submit_urb_for_ack(struct pn533_usb_phy *phy, gfp_t flags) | |||
148 | static int pn533_usb_send_ack(struct pn533 *dev, gfp_t flags) | 148 | static int pn533_usb_send_ack(struct pn533 *dev, gfp_t flags) |
149 | { | 149 | { |
150 | struct pn533_usb_phy *phy = dev->phy; | 150 | struct pn533_usb_phy *phy = dev->phy; |
151 | u8 ack[6] = {0x00, 0x00, 0xff, 0x00, 0xff, 0x00}; | 151 | static const u8 ack[6] = {0x00, 0x00, 0xff, 0x00, 0xff, 0x00}; |
152 | /* spec 7.1.1.3: Preamble, SoPC (2), ACK Code (2), Postamble */ | 152 | /* spec 7.1.1.3: Preamble, SoPC (2), ACK Code (2), Postamble */ |
153 | int rc; | 153 | int rc; |
154 | 154 | ||
155 | phy->out_urb->transfer_buffer = ack; | 155 | phy->out_urb->transfer_buffer = (u8 *)ack; |
156 | phy->out_urb->transfer_buffer_length = sizeof(ack); | 156 | phy->out_urb->transfer_buffer_length = sizeof(ack); |
157 | rc = usb_submit_urb(phy->out_urb, flags); | 157 | rc = usb_submit_urb(phy->out_urb, flags); |
158 | 158 | ||