nfc: pn532_uart: Make use of pn532 autopoll
authorLars Poeschel <poeschel@lemonage.de>
Tue, 29 Oct 2019 14:48:02 +0000 (15:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Oct 2019 04:05:26 +0000 (21:05 -0700)
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>
drivers/nfc/pn533/uart.c

index 1e35bf0..46e5ff1 100644 (file)
@@ -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);