projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd2e24d
)
spi: pxa2xx-pci: Move max_clk_rate assignment to ->setup()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Fri, 25 Feb 2022 17:23:45 +0000
(19:23 +0200)
committer
Mark Brown
<broonie@kernel.org>
Mon, 28 Feb 2022 12:10:22 +0000
(12:10 +0000)
Move max_clk_rate to the corresponding ->setup() function to unify
with the rest.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link:
https://lore.kernel.org/r/20220225172350.69797-6-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx-pci.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-pxa2xx-pci.c
b/drivers/spi/spi-pxa2xx-pci.c
index c2cbb002784ac8e70be47475eb29000e0f1803f3..5ac1487c9b3f5cc9880bf932656eec8a9d84b7b8 100644
(file)
--- a/
drivers/spi/spi-pxa2xx-pci.c
+++ b/
drivers/spi/spi-pxa2xx-pci.c
@@
-153,6
+153,8
@@
static int mrfld_spi_setup(struct pci_dev *dev, struct pxa_spi_info *c)
return -ENODEV;
}
+ c->max_clk_rate = 25000000;
+
dma_dev = pci_get_slot(dev->bus, PCI_DEVFN(21, 0));
ret = devm_add_action_or_reset(&dev->dev, lpss_dma_put_device, dma_dev);
if (ret)
@@
-213,7
+215,6
@@
static struct pxa_spi_info spi_info_configs[] = {
},
[PORT_MRFLD] = {
.type = MRFLD_SSP,
- .max_clk_rate = 25000000,
.setup = mrfld_spi_setup,
},
[PORT_QUARK_X1000] = {