2022-03-10 22:47:22

by Amit Kumar Mahapatra

[permalink] [raw]
Subject: [PATCH 0/2] spi: spi-cadence: Align function names and fix

This patch series
- Aligns resume/suspend function names.
- Fixes kernel-doc format.
---
BRANCH: mtd/next
---

Michal Simek (2):
spi: spi-cadence: Align function name s/cnds/cdns/g
spi: spi-cadence: Fix kernel-doc format for resume/suspend

drivers/spi/spi-cadence.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

--
2.17.1


2022-03-11 21:37:41

by Amit Kumar Mahapatra

[permalink] [raw]
Subject: [PATCH 1/2] spi: spi-cadence: Align function name s/cnds/cdns/g

From: Michal Simek <[email protected]>

Resume/suspend functions are using cnds instead of cdns that's why fix it
to be aligned with the rest of functions.

Signed-off-by: Michal Simek <[email protected]>
Signed-off-by: Amit Kumar Mahapatra <[email protected]>
---
drivers/spi/spi-cadence.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c
index ceb16e70d235..aff3f4241840 100644
--- a/drivers/spi/spi-cadence.c
+++ b/drivers/spi/spi-cadence.c
@@ -657,7 +657,7 @@ static int __maybe_unused cdns_spi_resume(struct device *dev)
*
* Return: 0 on success and error value on error
*/
-static int __maybe_unused cnds_runtime_resume(struct device *dev)
+static int __maybe_unused cdns_runtime_resume(struct device *dev)
{
struct spi_master *master = dev_get_drvdata(dev);
struct cdns_spi *xspi = spi_master_get_devdata(master);
@@ -686,7 +686,7 @@ static int __maybe_unused cnds_runtime_resume(struct device *dev)
*
* Return: Always 0
*/
-static int __maybe_unused cnds_runtime_suspend(struct device *dev)
+static int __maybe_unused cdns_runtime_suspend(struct device *dev)
{
struct spi_master *master = dev_get_drvdata(dev);
struct cdns_spi *xspi = spi_master_get_devdata(master);
@@ -698,8 +698,8 @@ static int __maybe_unused cnds_runtime_suspend(struct device *dev)
}

static const struct dev_pm_ops cdns_spi_dev_pm_ops = {
- SET_RUNTIME_PM_OPS(cnds_runtime_suspend,
- cnds_runtime_resume, NULL)
+ SET_RUNTIME_PM_OPS(cdns_runtime_suspend,
+ cdns_runtime_resume, NULL)
SET_SYSTEM_SLEEP_PM_OPS(cdns_spi_suspend, cdns_spi_resume)
};

--
2.17.1