From patchwork Mon Jan 16 06:45:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 9518187 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 41B89600C5 for ; Mon, 16 Jan 2017 06:48:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E56E28386 for ; Mon, 16 Jan 2017 06:48:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 02B8C2838E; Mon, 16 Jan 2017 06:48:25 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8618728386 for ; Mon, 16 Jan 2017 06:48:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cT15c-0007P0-Do; Mon, 16 Jan 2017 06:48:24 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cT13C-0003NW-9A for linux-arm-kernel@lists.infradead.org; Mon, 16 Jan 2017 06:45:56 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJV007TE1FSSK50@mailout2.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 16 Jan 2017 06:45:28 +0000 (GMT) Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170116064527eucas1p20c8087e786dc6242293d4ded6c35d875~aLZD2zNrn2712827128eucas1p2z; Mon, 16 Jan 2017 06:45:27 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2.samsung.com (EUCPMTA) with SMTP id 94.26.30614.70C6C785; Mon, 16 Jan 2017 06:45:27 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170116064526eucas1p150c6653c9f1fac798ea79f6bee5631a1~aLZDEiHUJ1339613396eucas1p1F; Mon, 16 Jan 2017 06:45:26 +0000 (GMT) X-AuditID: cbfec7f1-f793f6d000007796-86-587c6c07762f Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id C1.B9.10233.00C6C785; Mon, 16 Jan 2017 06:45:21 +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 <0OJV00BS81FJUN70@eusync2.samsung.com>; Mon, 16 Jan 2017 06:45:26 +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 Subject: [PATCH 07/12] pinctrl: samsung: Remove dead code Date: Mon, 16 Jan 2017 07:45:02 +0100 Message-id: <1484549107-5957-8-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1484549107-5957-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJIsWRmVeSWpSXmKPExsWy7djP87rsOTURBt8fK1lsnLGe1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S85PycxLt1UKDXHTtVBSyEvMTbVV itD1DQlSUihLzCkF8owM0ICDc4B7sJK+XYJbxuYNEQWfeSp+/b7C0sD4mquLkZNDQsBEYtG3 g0wQtpjEhXvr2UBsIYEljBL/Zwt1MXIB2U1MEt0v17CDJNgEDCW63naxgSREBJoZJRqW9II5 zAITmCRmfmoAGyUsYCnR1X2NsYuRg4NFQFXixi4ZkDCvgLtE+5oeZohtchInj01mBbE5BTwk Ju5rZYHY7C4x49VU5gmMvAsYGVYxiqSWFuem5xYb6RUn5haX5qXrJefnbmIEhvu2Yz+37GDs ehd8iFGAg1GJh3fBjuoIIdbEsuLK3EOMEhzMSiK8bpk1EUK8KYmVValF+fFFpTmpxYcYTYFu msgsJZqcD4zFvJJ4QxNDc0tDI2MLC3MjIyVx3qkfroQLCaQnlqRmp6YWpBbB9DFxcEo1MB7Q z9FvnS+iKr2+Pd1gRR6bXXvx8/ZtG6uWhLdZ2C/Y/f+6X7r69GUrjj72/PZuzQOmkCsBEzLM n7+VEm4WuqfyvMu07OrxBRrfzwktrf/PYajBxPLyewuzy+3Gu3YcNrmmTQvrRU4U2nmmL+zY 7yD443tOkLOHgMzc6UK6KSybbi+26V32VomlOCPRUIu5qDgRABA9NCKNAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170116064526eucas1p150c6653c9f1fac798ea79f6bee5631a1 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: 20170116064526eucas1p150c6653c9f1fac798ea79f6bee5631a1 X-RootMTR: 20170116064526eucas1p150c6653c9f1fac798ea79f6bee5631a1 References: <1484549107-5957-1-git-send-email-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170115_224554_567756_3E5C9DD6 X-CRM114-Status: GOOD ( 14.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartlomiej Zolnierkiewicz , Linus Walleij , Tomasz Figa , Krzysztof Kozlowski , Sylwester Nawrocki , Marek Szyprowski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 b11e67e85460..7648a280c0f4 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; }