Skip to content

Commit 4efa125

Browse files
tlebbroonie
authored andcommitted
spi: cadence-qspi: put runtime in runtime PM hooks names
Follow kernel naming convention with regards to power-management callback function names. The convention in the kernel is: - prefix_suspend means the system-wide suspend callback; - prefix_runtime_suspend means the runtime PM suspend callback. The same applies to resume callbacks. Signed-off-by: Théo Lebrun <[email protected]> Reviewed-by: Dhruva Gole <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 959043a commit 4efa125

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/spi/spi-cadence-quadspi.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,7 @@ static void cqspi_remove(struct platform_device *pdev)
19271927
pm_runtime_disable(&pdev->dev);
19281928
}
19291929

1930-
static int cqspi_suspend(struct device *dev)
1930+
static int cqspi_runtime_suspend(struct device *dev)
19311931
{
19321932
struct cqspi_st *cqspi = dev_get_drvdata(dev);
19331933

@@ -1936,7 +1936,7 @@ static int cqspi_suspend(struct device *dev)
19361936
return 0;
19371937
}
19381938

1939-
static int cqspi_resume(struct device *dev)
1939+
static int cqspi_runtime_resume(struct device *dev)
19401940
{
19411941
struct cqspi_st *cqspi = dev_get_drvdata(dev);
19421942

@@ -1949,8 +1949,8 @@ static int cqspi_resume(struct device *dev)
19491949
return 0;
19501950
}
19511951

1952-
static DEFINE_RUNTIME_DEV_PM_OPS(cqspi_dev_pm_ops, cqspi_suspend,
1953-
cqspi_resume, NULL);
1952+
static DEFINE_RUNTIME_DEV_PM_OPS(cqspi_dev_pm_ops, cqspi_runtime_suspend,
1953+
cqspi_runtime_resume, NULL);
19541954

19551955
static const struct cqspi_driver_platdata cdns_qspi = {
19561956
.quirks = CQSPI_DISABLE_DAC_MODE,

0 commit comments

Comments
 (0)