Skip to content

Commit

Permalink
nfc: pn532_uart: Make use of pn532 autopoll
Browse files Browse the repository at this point in the history
This switches the pn532 UART phy driver from manually polling to the new
autopoll mechanism.

Cc: Johan Hovold <johan@kernel.org>
Signed-off-by: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Lars Poeschel authored and David S. Miller committed Oct 30, 2019
1 parent c64b875 commit e4a5dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nfc/pn533/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ static int pn532_uart_probe(struct serdev_device *serdev)
serdev_device_set_flow_control(serdev, false);
pn532->send_wakeup = PN532_SEND_WAKEUP;
timer_setup(&pn532->cmd_timeout, pn532_cmd_timeout, 0);
priv = pn53x_common_init(PN533_DEVICE_PN532,
priv = pn53x_common_init(PN533_DEVICE_PN532_AUTOPOLL,
PN533_PROTO_REQ_ACK_RESP,
pn532, &uart_phy_ops, NULL,
&pn532->serdev->dev);
Expand Down

0 comments on commit e4a5dc1

Please sign in to comment.