From patchwork Tue Jan 17 12:44:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 9520741 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A4C4860447 for ; Tue, 17 Jan 2017 12:46:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D7E228547 for ; Tue, 17 Jan 2017 12:46:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7833328546; Tue, 17 Jan 2017 12:46:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10FE028546 for ; Tue, 17 Jan 2017 12:46:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751267AbdAQMq0 (ORCPT ); Tue, 17 Jan 2017 07:46:26 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:63732 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751186AbdAQMqH (ORCPT ); Tue, 17 Jan 2017 07:46:07 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJX003D0CR1OO70@mailout3.w1.samsung.com>; Tue, 17 Jan 2017 12:45:02 +0000 (GMT) Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170117124501eucas1p2ce6a5c74ee6387c9f2bdd08e9cb4a93a~aj8STo9wV2594725947eucas1p2P; Tue, 17 Jan 2017 12:45:01 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2.samsung.com (EUCPMTA) with SMTP id 2F.B6.30614.DC11E785; Tue, 17 Jan 2017 12:45:01 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170117124500eucas1p265447c459ad0ac0a79dc3d3c833d09f6~aj8RpcZm02588425884eucas1p2J; Tue, 17 Jan 2017 12:45:00 +0000 (GMT) X-AuditID: cbfec7f1-f793f6d000007796-32-587e11cdf232 Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 77.E4.10233.7C11E785; Tue, 17 Jan 2017 12:44:55 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OJX00GNRCQPHB20@eusync2.samsung.com>; Tue, 17 Jan 2017 12:45:00 +0000 (GMT) From: Marek Szyprowski To: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , Bartlomiej Zolnierkiewicz Subject: [PATCH v2 08/13] pinctrl: samsung: Remove dead code Date: Tue, 17 Jan 2017 13:44:39 +0100 Message-id: <1484657084-26227-9-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1484657084-26227-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDIsWRmVeSWpSXmKPExsWy7djPc7pnBesiDD63iFtsnLGe1eL8+Q3s FlP+LGey2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VilC1zckSEmhLDGnFMgzMkADDs4B7sFK+nYJbhkPju9hKvjMU/FgYy9TA+Nrri5GTg4JAROJ 30+mMELYYhIX7q1n62Lk4hASWMIosWdHFwuE08Qk8f/8DLAqNgFDia63XWBVIgLNjBINS3rB HGaBCUwSMz81MIFUCQvYSMw6v4wZxGYRUJU4+e0rG4jNK+AhsWz7VWaIfXISJ49NZgWxOQU8 JX78XA/WKwRUc/7+PtYJjLwLGBlWMYqklhbnpucWG+kVJ+YWl+al6yXn525iBIb9tmM/t+xg 7HoXfIhRgINRiYfX6XZNhBBrYllxZe4hRgkOZiUR3rkCdRFCvCmJlVWpRfnxRaU5qcWHGE2B jprILCWanA+MybySeEMTQ3NLQyNjCwtzIyMlcd6pH66ECwmkJ5akZqemFqQWwfQxcXBKNTCW Xn0yRfd9Ntti//MhRzZV/z1vKDeh5qXituse0yZLyma/kVtkdny60u+S1We1mrmVXtc87hfL 9F/jE/Ltybaon6bXPn+J/qnEOCVuc3i5V1Hqs2hfkZ/eF+IuaKmv23eo9WuJtfWUw3GLFx14 fK8l65trvk7udEn3STs/MbE/KWSYpfF3yuVdSizFGYmGWsxFxYkA3SJoe5ECAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170117124500eucas1p265447c459ad0ac0a79dc3d3c833d09f6 X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?UTF-8?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRs=?= =?UTF-8?B?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRtT?= =?UTF-8?B?YW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170117124500eucas1p265447c459ad0ac0a79dc3d3c833d09f6 X-RootMTR: 20170117124500eucas1p265447c459ad0ac0a79dc3d3c833d09f6 References: <1484657084-26227-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 'enable' parameter has been removed a while ago, so all code for handling it can be simply removed. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Acked-by: Tomasz Figa --- drivers/pinctrl/samsung/pinctrl-samsung.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c b/drivers/pinctrl/samsung/pinctrl-samsung.c index 10b3fd826231..2803ae57f373 100644 --- a/drivers/pinctrl/samsung/pinctrl-samsung.c +++ b/drivers/pinctrl/samsung/pinctrl-samsung.c @@ -350,7 +350,7 @@ static void pin_to_reg_bank(struct samsung_pinctrl_drv_data *drvdata, /* enable or disable a pinmux function */ static void samsung_pinmux_setup(struct pinctrl_dev *pctldev, unsigned selector, - unsigned group, bool enable) + unsigned group) { struct samsung_pinctrl_drv_data *drvdata; const struct samsung_pin_bank_type *type; @@ -380,8 +380,7 @@ static void samsung_pinmux_setup(struct pinctrl_dev *pctldev, unsigned selector, data = readl(reg + type->reg_offset[PINCFG_TYPE_FUNC]); data &= ~(mask << shift); - if (enable) - data |= func->val << shift; + data |= func->val << shift; writel(data, reg + type->reg_offset[PINCFG_TYPE_FUNC]); spin_unlock_irqrestore(&bank->slock, flags); @@ -392,7 +391,7 @@ static int samsung_pinmux_set_mux(struct pinctrl_dev *pctldev, unsigned selector, unsigned group) { - samsung_pinmux_setup(pctldev, selector, group, true); + samsung_pinmux_setup(pctldev, selector, group); return 0; }