Skip to contentSkip to conversation

mfd: ucb1x00-core: Use SIMPLE_DEV_PM_OPS macro

PATCH Applied Jingoo Han 2 participants 2 messages Feb 27, 2014 Multifunction devices (MFD)

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 mfd: ucb1x00-core: Use SIMPLE_DEV_PM_OPS macro

Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

---
 drivers/mfd/ucb1x00-core.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/mfd/ucb1x00-core.c +1 -3
index 0313f83..153d595 100644
@@ -742,9 +742,7 @@ static int ucb1x00_resume(struct device *dev)
 }
 #endif
 
-static const struct dev_pm_ops ucb1x00_pm_ops = {
-	SET_SYSTEM_SLEEP_PM_OPS(ucb1x00_suspend, ucb1x00_resume)
-};
+static SIMPLE_DEV_PM_OPS(ucb1x00_pm_ops, ucb1x00_suspend, ucb1x00_resume);
 
 static struct mcp_driver ucb1x00_driver = {
 	.drv		= {
Signature · 1 line
1.7.10.4
Applied
#1 lore raw
Quoted 6 lines · Jingoo Han

Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

---
 drivers/mfd/ucb1x00-core.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Applied, thanks.

Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog