[v5,7/7] nfc: pn532_uart: Make use of pn532 autopoll
diff mbox series

Message ID 20190111161812.26325-7-poeschel@lemonage.de
State New
Delegated to: Samuel Ortiz
Headers show
  • [v5,1/7] nfc: pn533: i2c: "pn532" as dt compatible string
Related show

Commit Message

Lars Poeschel Jan. 11, 2019, 4:18 p.m. UTC
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>
 drivers/nfc/pn533/uart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/drivers/nfc/pn533/uart.c b/drivers/nfc/pn533/uart.c
index 78ef464bfa7b..2f0fcc6d964a 100644
--- a/drivers/nfc/pn533/uart.c
+++ b/drivers/nfc/pn533/uart.c
@@ -254,7 +254,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,
 				     pn532, &uart_phy_ops, NULL,