Skip to content

Commit 3cc731d

Browse files
Jingoo Hanchanwoochoi
authored andcommitted
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>
1 parent 8d4288f commit 3cc731d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎drivers/extcon/extcon-gpio.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,7 @@ static int gpio_extcon_resume(struct device *dev)
176176
}
177177
#endif
178178

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);
182180

183181
static struct platform_driver gpio_extcon_driver = {
184182
.probe = gpio_extcon_probe,

0 commit comments

Comments
 (0)