OSDN Git Service

PCI: imx6: Simplify pcie_phy_poll_ack()
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Mon, 15 Apr 2019 00:46:29 +0000 (17:46 -0700)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 1 May 2019 10:35:47 +0000 (11:35 +0100)
commitc2c708bc1dbf9655211d3843e2f36c7951059cf0
treefc89fc9794bf6655c205f355b2a4f2d45942b958
parent3ca4133253a7ff37e56b3b00f1e03c3e7d20ea89
PCI: imx6: Simplify pcie_phy_poll_ack()

Simplify pcie_phy_poll_ack() by incorporating shifting into constant
definition and convert the code to use 'bool'. No functional change
intended.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: linux-kernel@vger.kernel.org
Cc: linux-pci@vger.kernel.org
drivers/pci/controller/dwc/pci-imx6.c