Skip to content

Commit 74d2331

Browse files
mfischerWolfram Sang
authored andcommitted
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: Moritz Fischer <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 8efb11a commit 74d2331

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/i2c/busses/i2c-xiic.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ static const struct of_device_id xiic_of_match[] = {
851851
MODULE_DEVICE_TABLE(of, xiic_of_match);
852852
#endif
853853

854-
static int __maybe_unused cdns_i2c_runtime_suspend(struct device *dev)
854+
static int __maybe_unused xiic_i2c_runtime_suspend(struct device *dev)
855855
{
856856
struct xiic_i2c *i2c = dev_get_drvdata(dev);
857857

@@ -860,7 +860,7 @@ static int __maybe_unused cdns_i2c_runtime_suspend(struct device *dev)
860860
return 0;
861861
}
862862

863-
static int __maybe_unused cdns_i2c_runtime_resume(struct device *dev)
863+
static int __maybe_unused xiic_i2c_runtime_resume(struct device *dev)
864864
{
865865
struct xiic_i2c *i2c = dev_get_drvdata(dev);
866866
int ret;
@@ -875,8 +875,8 @@ static int __maybe_unused cdns_i2c_runtime_resume(struct device *dev)
875875
}
876876

877877
static const struct dev_pm_ops xiic_dev_pm_ops = {
878-
SET_RUNTIME_PM_OPS(cdns_i2c_runtime_suspend,
879-
cdns_i2c_runtime_resume, NULL)
878+
SET_RUNTIME_PM_OPS(xiic_i2c_runtime_suspend,
879+
xiic_i2c_runtime_resume, NULL)
880880
};
881881
static struct platform_driver xiic_i2c_driver = {
882882
.probe = xiic_i2c_probe,

0 commit comments

Comments
 (0)