i2c: exynos5: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded
Subsystems (2)
PATCH 1/2 i2c: exynos5: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded
Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS to simplify the code.
--- drivers/i2c/busses/i2c-exynos5.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
drivers/i2c/busses/i2c-exynos5.c +2 -8
@@ -847,14 +847,8 @@ static int exynos5_i2c_resume_noirq(struct device *dev)#endif static const struct dev_pm_ops exynos5_i2c_dev_pm_ops = { -#ifdef CONFIG_PM_SLEEP - .suspend_noirq = exynos5_i2c_suspend_noirq, - .resume_noirq = exynos5_i2c_resume_noirq, - .freeze_noirq = exynos5_i2c_suspend_noirq, - .thaw_noirq = exynos5_i2c_resume_noirq, - .poweroff_noirq = exynos5_i2c_suspend_noirq, - .restore_noirq = exynos5_i2c_resume_noirq, -#endif +SET_NOIRQ_SYSTEM_SLEEP_PM_OPS (exynos5_i2c_suspend_noirq, + exynos5_i2c_resume_noirq) };static struct platform_driver exynos5_i2c_driver = {
Signature · 1 line
2.5.0
PATCH 2/2 i2c: s3c2410: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded
Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS to simplify the code.
--- drivers/i2c/busses/i2c-s3c2410.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
drivers/i2c/busses/i2c-s3c2410.c +2 -8
@@ -1316,14 +1316,8 @@ static int s3c24xx_i2c_resume_noirq(struct device *dev)#ifdef CONFIG_PM static const struct dev_pm_ops s3c24xx_i2c_dev_pm_ops = { -#ifdef CONFIG_PM_SLEEP - .suspend_noirq = s3c24xx_i2c_suspend_noirq, - .resume_noirq = s3c24xx_i2c_resume_noirq, - .freeze_noirq = s3c24xx_i2c_suspend_noirq, - .thaw_noirq = s3c24xx_i2c_resume_noirq, - .poweroff_noirq = s3c24xx_i2c_suspend_noirq, - .restore_noirq = s3c24xx_i2c_resume_noirq, -#endif +SET_NOIRQ_SYSTEM_SLEEP_PM_OPS (s3c24xx_i2c_suspend_noirq, + s3c24xx_i2c_resume_noirq) };#define S3C24XX_DEV_PM_OPS (&s3c24xx_i2c_dev_pm_ops)
Signature · 1 line
2.5.0
Re: [PATCH 2/2] i2c: s3c2410: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded
Quoted 6 lines · Axel Lin
Use
SET_NOIRQ_SYSTEM_SLEEP_PM_OPSto simplify the code.Signed-off-by Axel Lin <[email protected]>--- drivers/i2c/busses/i2c-s3c2410.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
Best regards,
Krzysztof
Wolfram Sang
AppliedRe: [2/2] i2c: s3c2410: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded
In reply to Axel LinQuoted 4 lines · Axel Lin
Use
SET_NOIRQ_SYSTEM_SLEEP_PM_OPSto simplify the code.Signed-off-by Axel Lin <[email protected]>Reviewed-by Krzysztof Kozlowski <[email protected]>
Applied to for-next, thanks!
Quoted 6 lines · Axel Lin
Use
SET_NOIRQ_SYSTEM_SLEEP_PM_OPSto simplify the code.Signed-off-by Axel Lin <[email protected]>--- drivers/i2c/busses/i2c-exynos5.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
Best regards,
Krzysztof
Wolfram Sang
AppliedQuoted 3 lines · Axel Lin
Use
SET_NOIRQ_SYSTEM_SLEEP_PM_OPSto simplify the code.Signed-off-by Axel Lin <[email protected]>
Applied to for-next, thanks!