Commit 4df6836d authored by Michal Simek's avatar Michal Simek Committed by Mark Brown

spi: spi-cadence: Fix kernel-doc format for resume/suspend

Kernel function name don't match with function name.

Error log:
drivers/spi/spi-cadence.c:661: warning: expecting prototype for
cdns_spi_runtime_resume(). Prototype was for cnds_runtime_resume() instead
drivers/spi/spi-cadence.c:690: warning: expecting prototype for
cdns_spi_runtime_suspend(). Prototype was for cnds_runtime_suspend()
instead

Fixes: d36ccd9f ("spi: cadence: Runtime pm adaptation")
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarAmit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Link: https://lore.kernel.org/r/20220322150018.12736-1-amit.kumar-mahapatra@xilinx.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 774227cf
...@@ -657,7 +657,7 @@ static int __maybe_unused cdns_spi_resume(struct device *dev) ...@@ -657,7 +657,7 @@ static int __maybe_unused cdns_spi_resume(struct device *dev)
* *
* Return: 0 on success and error value on error * Return: 0 on success and error value on error
*/ */
static int __maybe_unused cnds_runtime_resume(struct device *dev) static int __maybe_unused cdns_spi_runtime_resume(struct device *dev)
{ {
struct spi_master *master = dev_get_drvdata(dev); struct spi_master *master = dev_get_drvdata(dev);
struct cdns_spi *xspi = spi_master_get_devdata(master); struct cdns_spi *xspi = spi_master_get_devdata(master);
...@@ -686,7 +686,7 @@ static int __maybe_unused cnds_runtime_resume(struct device *dev) ...@@ -686,7 +686,7 @@ static int __maybe_unused cnds_runtime_resume(struct device *dev)
* *
* Return: Always 0 * Return: Always 0
*/ */
static int __maybe_unused cnds_runtime_suspend(struct device *dev) static int __maybe_unused cdns_spi_runtime_suspend(struct device *dev)
{ {
struct spi_master *master = dev_get_drvdata(dev); struct spi_master *master = dev_get_drvdata(dev);
struct cdns_spi *xspi = spi_master_get_devdata(master); struct cdns_spi *xspi = spi_master_get_devdata(master);
...@@ -698,8 +698,8 @@ static int __maybe_unused cnds_runtime_suspend(struct device *dev) ...@@ -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 = { static const struct dev_pm_ops cdns_spi_dev_pm_ops = {
SET_RUNTIME_PM_OPS(cnds_runtime_suspend, SET_RUNTIME_PM_OPS(cdns_spi_runtime_suspend,
cnds_runtime_resume, NULL) cdns_spi_runtime_resume, NULL)
SET_SYSTEM_SLEEP_PM_OPS(cdns_spi_suspend, cdns_spi_resume) SET_SYSTEM_SLEEP_PM_OPS(cdns_spi_suspend, cdns_spi_resume)
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment