From patchwork Thu Feb 27 11:43:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 3732021 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@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 7CC269F2ED for ; Thu, 27 Feb 2014 11:43:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B5EBF201FE for ; Thu, 27 Feb 2014 11:43:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E1E6B201DD for ; Thu, 27 Feb 2014 11:43:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751223AbaB0LnF (ORCPT ); Thu, 27 Feb 2014 06:43:05 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:9855 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751200AbaB0LnD (ORCPT ); Thu, 27 Feb 2014 06:43:03 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1N006YPKJQVL90@mailout1.samsung.com> for linux-pm@vger.kernel.org; Thu, 27 Feb 2014 20:43:02 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 32.D5.14803.6C42F035; Thu, 27 Feb 2014 20:43:02 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-0c-530f24c68746 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 2F.56.28157.6C42F035; Thu, 27 Feb 2014 20:43:02 +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 <0N1N0049PKJQGR00@mmp2.samsung.com>; Thu, 27 Feb 2014 20:43:02 +0900 (KST) From: Jingoo Han To: 'Zhang Rui' Cc: 'Eduardo Valentin' , linux-pm@vger.kernel.org, 'Jingoo Han' , 'Ranganath Krishnan' Subject: [PATCH] thermal: ti-soc-thermal: Use SIMPLE_DEV_PM_OPS macro Date: Thu, 27 Feb 2014 20:43:02 +0900 Message-id: <000e01cf33b1$12277f00$36767d00$%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 Thread-index: Ac8zsRITHRHTPPlYRaC3D4q8Lm7EKg== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDIsWRmVeSWpSXmKPExsVy+t8zI91jKvzBBpvXq1is2f+TyeLywkus Fp97jzBatO6cxGLx5GEfmwOrx+I9L5k8+rasYvQ4fmM7k8fnTXIBLFFcNimpOZllqUX6dglc GT+fb2EqaGSvmLd1CXMDYwtbFyMnh4SAicTLh71QtpjEhXvrgWwuDiGBZYwSt/unMsEUrdre zQKRmM4oce/pVFYI5zejxNy1jxlBqtgE1CS+fDnMDmKLCKhK3DrdwwRSxCwwk1HifOMdVpCE sICrxMfW62BFLEBFJ5d/BbN5BWwlLrWeZoGwBSV+TL4HZjMLaEms33mcCcKWl9i85i1zFyMH 0EnqEo/+6kLs0pOYe/AbVLmIxL4X7xhB9koI7GKXuHloLhPELgGJb5MPsUD0ykpsOsAM8Zmk xMEVN1gmMIrNQrJ5FpLNs5BsnoVkxQJGllWMoqkFyQXFSelFpnrFibnFpXnpesn5uZsYITE3 cQfj/QPWhxiTgdZPZJYS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Sxp lW+1fOXKtWKZDn9eTFt78Qn73WdbvJ47RqyfLBbc/Sp/RtlN/f8SsfwVpb7Z8/mbUpmuxCTP XLzGUYmlOCPRUIu5qDgRAGShr74sAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 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 Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler. Signed-off-by: Jingoo Han --- drivers/thermal/ti-soc-thermal/ti-bandgap.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.c b/drivers/thermal/ti-soc-thermal/ti-bandgap.c index 74c0e34..3ab12ee 100644 --- a/drivers/thermal/ti-soc-thermal/ti-bandgap.c +++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.c @@ -1500,10 +1500,8 @@ static int ti_bandgap_resume(struct device *dev) return ti_bandgap_restore_ctxt(bgp); } -static const struct dev_pm_ops ti_bandgap_dev_pm_ops = { - SET_SYSTEM_SLEEP_PM_OPS(ti_bandgap_suspend, - ti_bandgap_resume) -}; +static SIMPLE_DEV_PM_OPS(ti_bandgap_dev_pm_ops, ti_bandgap_suspend, + ti_bandgap_resume); #define DEV_PM_OPS (&ti_bandgap_dev_pm_ops) #else