Message ID | 000701cf4d3e$856f2ac0$904d8040$%han@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fbdev-owner@kernel.org> X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DBB4C9F357 for <patchwork-linux-fbdev@patchwork.kernel.org>; Tue, 1 Apr 2014 00:08:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9B6B3203AF for <patchwork-linux-fbdev@patchwork.kernel.org>; Tue, 1 Apr 2014 00:08:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4F15B20204 for <patchwork-linux-fbdev@patchwork.kernel.org>; Tue, 1 Apr 2014 00:08:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751153AbaDAAIg (ORCPT <rfc822;patchwork-linux-fbdev@patchwork.kernel.org>); Mon, 31 Mar 2014 20:08:36 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:65471 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750857AbaDAAIf convert rfc822-to-8bit (ORCPT <rfc822;linux-fbdev@vger.kernel.org>); Mon, 31 Mar 2014 20:08:35 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3B006Z0SEA0U00@mailout3.samsung.com> for linux-fbdev@vger.kernel.org; Tue, 01 Apr 2014 09:08:34 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id F6.4C.12635.2830A335; Tue, 01 Apr 2014 09:08:34 +0900 (KST) X-AuditID: cbfee68d-b7fcd6d00000315b-83-533a0382e48e Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 13.90.28157.2830A335; Tue, 01 Apr 2014 09:08:34 +0900 (KST) Received: from DOJG1HAN03 ([12.36.166.146]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N3B002BDSE9C070@mmp2.samsung.com>; Tue, 01 Apr 2014 09:08:33 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'Alexander Shiyan' <shc_work@mail.ru>, 'Lee Jones' <lee.jones@linaro.org> Cc: linux-fbdev@vger.kernel.org, 'Bryan Wu' <cooloney@gmail.com>, 'Jean-Christophe Plagniol-Villard' <plagnioj@jcrosoft.com>, 'Tomi Valkeinen' <tomi.valkeinen@ti.com>, 'Jingoo Han' <jg1.han@samsung.com>, 'Joe Perches' <joe@perches.com>, 'Dan Carpenter' <dan.carpenter@oracle.com> References: <1396087871-9091-1-git-send-email-shc_work@mail.ru> <1396253926.772940992@f347.i.mail.ru> <20140331085047.GA20397@lee--X1> <1396262212.223310081@f381.i.mail.ru> In-reply-to: <1396262212.223310081@f381.i.mail.ru> Subject: Re: [PATCH] backlight: pwm_bl: Use SIMPLE_DEV_PM_OPS() Date: Tue, 01 Apr 2014 09:08:33 +0900 Message-id: <000701cf4d3e$856f2ac0$904d8040$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac9MzSPRZeornPSKQieIhvWtbX/UfAAb4cpA Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHIsWRmVeSWpSXmKPExsVy+t8zY90mZqtgg6U3eS2O7pzIZPH633QW i8sLL7FazL7/mMXi/tejjBYn+j6wWqx7+ILJYtIOKYv182+xOXB67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LlbSt8M0ITTETdcC pjFC1zckCK7HyAANJKxjzGh7dJWlYKFUxaJNqxgbGHeJdDFyckgImEi0Lf3FBGGLSVy4t56t i5GLQ0hgOqPEqqXnWSGc34wSjZPXg1WxCahJfPlymB3EFhHwlXh6cBITSBGzwFwmiY49s1gg OjYwShw80gNWxSlgJHHi+DGwbmEBe4mXs18yg9gsAqoSU7ZfANrHwcErYCsxb0sYSJhXQFDi x+R7LCBhZgF1iSlTckHCzALaEk/eXWAFCUsAhR/91YU4wUji9dI5zBAlIhL7XrxjnMAoNAvJ oFkIg2YhGTQLSccCRpZVjKKpBckFxUnpuUZ6xYm5xaV56XrJ+bmbGMFJ5Zn0DsZVDRaHGAU4 GJV4eC3KLYOFWBPLiitzDzFKcDArifAeeQ8U4k1JrKxKLcqPLyrNSS0+xJgM9OVEZinR5Hxg wssriTc0NjEzsjQyszAyMTcnTVhJnPdgq3WgkEB6YklqdmpqQWoRzBYmDk6pBkY5DbGJd7X3 nHooUtJ6+Gdax6bV05f+zLHl5GRMV161fNmFmIzysyXzN9Y23ntX+E/EhKnM+abDkZa7BakX 1LKa7y+bt6Xh4IPJImmbFea0u/OJPj/qHcj+s2SPd8TZhdvLV/h4/vVctT2mP+PjrCsPtfkc Li98Flk7effKh8UBV9j6JMsXBzsrsRRnJBpqMRcVJwIAu2iF2G4DAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fbdev.vger.kernel.org> X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
--- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -386,14 +386,7 @@ static int pwm_backlight_resume(struct device *dev) } #endif -static const struct dev_pm_ops pwm_backlight_pm_ops = { -#ifdef CONFIG_PM_SLEEP - .suspend = pwm_backlight_suspend, - .resume = pwm_backlight_resume, - .poweroff = pwm_backlight_suspend, - .restore = pwm_backlight_resume, -#endif -}; +static SIMPLE_DEV_PM_OPS(pwm_bl_pm_ops, pwm_bl_suspend, pwm_bl_resume); Best regards, Jingoo Han