Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

extcon: gpio: Use SIMPLE_DEV_PM_OPS macro

Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Jingoo Han and committed by
Chanwoo Choi
3cc731d9 8d4288fb

+1 -3
+1 -3
drivers/extcon/extcon-gpio.c
··· 176 176 } 177 177 #endif 178 178 179 - static const struct dev_pm_ops gpio_extcon_pm_ops = { 180 - SET_SYSTEM_SLEEP_PM_OPS(NULL, gpio_extcon_resume) 181 - }; 179 + static SIMPLE_DEV_PM_OPS(gpio_extcon_pm_ops, NULL, gpio_extcon_resume); 182 180 183 181 static struct platform_driver gpio_extcon_driver = { 184 182 .probe = gpio_extcon_probe,