]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: imx6: Use enum instead of bool for variant indicator
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Mon, 2 May 2016 19:08:21 +0000 (14:08 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 2 May 2016 19:08:21 +0000 (14:08 -0500)
commite6f1fef04c253955004efea35aea2e4bc59f49b6
tree7a41cd63795fc10dbeba41ccb33efae5f3582807
parenta5fcec480f25eb5444c0b71ecdf9b18b09236b95
PCI: imx6: Use enum instead of bool for variant indicator

Use enumerated type instead of a boolean flag to specify the variant of
the PCIe IP block (6Q, 6SX, etc).  This patch has zero functional impact,
however it makes the code easier to extend for the case of more than 2
possible variants of an IP block (of which there are).

[bhelgaas: rewrap comment, remove extra blank line]
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
drivers/pci/host/pci-imx6.c