From patchwork Wed Feb 26 01:17:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 324166 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 91A4F2C0040 for ; Wed, 26 Feb 2014 12:17:56 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750844AbaBZBR4 (ORCPT ); Tue, 25 Feb 2014 20:17:56 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:40663 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750764AbaBZBRz (ORCPT ); Tue, 25 Feb 2014 20:17:55 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1K00LEIWXUMZD0@mailout3.samsung.com> for linux-pwm@vger.kernel.org; Wed, 26 Feb 2014 10:17:54 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 26.69.14803.2C04D035; Wed, 26 Feb 2014 10:17:54 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-4e-530d40c25266 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 1D.B8.28157.2C04D035; Wed, 26 Feb 2014 10:17:54 +0900 (KST) Received: from DOJG1HAN03 ([12.36.166.146]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N1K00H8YWXT3W80@mmp1.samsung.com>; Wed, 26 Feb 2014 10:17:54 +0900 (KST) From: Jingoo Han To: 'Thierry Reding' Cc: linux-pwm@vger.kernel.org, 'Jingoo Han' Subject: [PATCH] pwm: samsung: Use SIMPLE_DEV_PM_OPS macro Date: Wed, 26 Feb 2014 10:17:53 +0900 Message-id: <002d01cf3290$92feb840$b8fc28c0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-language: ko Thread-index: Ac8ykJLo1hUspBwSSliCxy+NQvDejg== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNIsWRmVeSWpSXmKPExsVy+t8zI91DDrzBBq+3CVhcXniJ1eLu3VWM Fj93zWNxYPbYOesuu0ffllWMHp83yQUwR3HZpKTmZJalFunbJXBlPNySWdDHVnHpVh9jA+NE 1i5GTg4JAROJHRcbWCBsMYkL99azdTFycQgJLGOUOH19JTNM0eUzd1ggEosYJZYf+QLl/GaU WPzhKSNIFZuAmsSXL4fZQWwRAX2JS9cvga1gFnCUOH+sH8wWFrCSmLjtMBOIzSKgKnH31hqw OK+ArcSsH5egbEGJH5PvsUD0akms33mcCcKWl9i85i3QRRxAF6lLPPqrCxEWkdj34h0jxFo9 iW9HHzOC3CYhsIxd4u/BNlaIXQIS3yYfYoHolZXYdADqMUmJgytusExgFJuFZPMsJJtnIdk8 C8m6BYwsqxhFUwuSC4qT0otM9YoTc4tL89L1kvNzNzFCImriDsb7B6wPMSYDrZ/ILCWanA+M yLySeENjMyMLUxNTYyNzSzPShJXEedMfJQUJCaQnlqRmp6YWpBbFF5XmpBYfYmTi4JRqYPQ/ VO2+z+C3EOv6Mhn35T8/Fr3wbl/Xs3SpkvEaIxaxZ3dWXEuvPbd0i0qzSdcDLpWY589mK1sG P4+OKN3Ic+bdf5t3H5/YNCrHZbqycDssvi/fnKmyT1dBXrth6YOztzf+/8l8YUrlpik7NP3f vSttmr/Hc79KT1beDimPLLcyifl5OzgtzymxFGckGmoxFxUnAgDjisqevgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgleLIzCtJLcpLzFFi42I5/e+xgO4hB95gg1XTeC0uL7zEanH37ipG i5+75rE4MHvsnHWX3aNvyypGj8+b5AKYoxoYbTJSE1NSixRS85LzUzLz0m2VvIPjneNNzQwM dQ0tLcyVFPISc1NtlVx8AnTdMnOANikplCXmlAKFAhKLi5X07TBNCA1x07WAaYzQ9Q0Jgusx MkADCesYMx5uySzoY6u4dKuPsYFxImsXIyeHhICJxOUzd1ggbDGJC/fWs3UxcnEICSxilFh+ 5AsLhPObUWLxh6eMIFVsAmoSX74cZgexRQT0JS5dvwQ2iVnAUeL8sX4wW1jASmLitsNMIDaL gKrE3VtrwOK8ArYSs35cgrIFJX5MvscC0aslsX7ncSYIW15i85q3zF2MHEAXqUs8+qsLERaR 2PfiHSPEWj2Jb0cfM05gFJiFZNIsJJNmIZk0C0n7AkaWVYyiqQXJBcVJ6blGesWJucWleel6 yfm5mxjB8fpMegfjqgaLQ4wCHIxKPLwBLLzBQqyJZcWVuYcYJTiYlUR4Lb7xBAvxpiRWVqUW 5ccXleakFh9iTAZ6dCKzlGhyPjCV5JXEGxqbmBlZGplZGJmYm5MmrCTOe7DVOlBIID2xJDU7 NbUgtQhmCxMHp1QDY21n7B/B5Z81Kn+vK34XUJ+mqLDt4aKOyStfPr4fUfvE9daN0x/OnJvw 95yhULbxHZOGj+o/M4+81JxxpyR6dte3mcI5Xzj2TqzcuNTufPTl5csS71vtkrtfse52ldbR J14/X73fY75b7W6ipfM9tlwTTpG9xzZwP+acv8gg9f3MLo9pUkLTzf2UWIozEg21mIuKEwGq xAN+GwMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pwm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pwm@vger.kernel.org Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler. Signed-off-by: Jingoo Han --- drivers/pwm/pwm-samsung.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-samsung.c b/drivers/pwm/pwm-samsung.c index b59639e..d66529a 100644 --- a/drivers/pwm/pwm-samsung.c +++ b/drivers/pwm/pwm-samsung.c @@ -598,9 +598,8 @@ static int pwm_samsung_resume(struct device *dev) } #endif -static const struct dev_pm_ops pwm_samsung_pm_ops = { - SET_SYSTEM_SLEEP_PM_OPS(pwm_samsung_suspend, pwm_samsung_resume) -}; +static SIMPLE_DEV_PM_OPS(pwm_samsung_pm_ops, pwm_samsung_suspend, + pwm_samsung_resume); static struct platform_driver pwm_samsung_driver = { .driver = {