Commit 74d23319 authored by Moritz Fischer's avatar Moritz Fischer Committed by Wolfram Sang

i2c: xiic: Make suspend function names consistent

Suspend functions seem to have been copied from i2c-cadence driver.
Rename the functions to match the rest of the driver.
Signed-off-by: default avatarMoritz Fischer <mdf@kernel.org>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 8efb11ad
...@@ -851,7 +851,7 @@ static const struct of_device_id xiic_of_match[] = { ...@@ -851,7 +851,7 @@ static const struct of_device_id xiic_of_match[] = {
MODULE_DEVICE_TABLE(of, xiic_of_match); MODULE_DEVICE_TABLE(of, xiic_of_match);
#endif #endif
static int __maybe_unused cdns_i2c_runtime_suspend(struct device *dev) static int __maybe_unused xiic_i2c_runtime_suspend(struct device *dev)
{ {
struct xiic_i2c *i2c = dev_get_drvdata(dev); struct xiic_i2c *i2c = dev_get_drvdata(dev);
...@@ -860,7 +860,7 @@ static int __maybe_unused cdns_i2c_runtime_suspend(struct device *dev) ...@@ -860,7 +860,7 @@ static int __maybe_unused cdns_i2c_runtime_suspend(struct device *dev)
return 0; return 0;
} }
static int __maybe_unused cdns_i2c_runtime_resume(struct device *dev) static int __maybe_unused xiic_i2c_runtime_resume(struct device *dev)
{ {
struct xiic_i2c *i2c = dev_get_drvdata(dev); struct xiic_i2c *i2c = dev_get_drvdata(dev);
int ret; int ret;
...@@ -875,8 +875,8 @@ static int __maybe_unused cdns_i2c_runtime_resume(struct device *dev) ...@@ -875,8 +875,8 @@ static int __maybe_unused cdns_i2c_runtime_resume(struct device *dev)
} }
static const struct dev_pm_ops xiic_dev_pm_ops = { static const struct dev_pm_ops xiic_dev_pm_ops = {
SET_RUNTIME_PM_OPS(cdns_i2c_runtime_suspend, SET_RUNTIME_PM_OPS(xiic_i2c_runtime_suspend,
cdns_i2c_runtime_resume, NULL) xiic_i2c_runtime_resume, NULL)
}; };
static struct platform_driver xiic_i2c_driver = { static struct platform_driver xiic_i2c_driver = {
.probe = xiic_i2c_probe, .probe = xiic_i2c_probe,
......
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