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: 91535 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1290741qgi; Sun, 15 Jan 2017 22:45:53 -0800 (PST) X-Received: by 10.98.201.135 with SMTP id l7mr35527213pfk.67.1484549153042; Sun, 15 Jan 2017 22:45:53 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o9si16754054pfo.60.2017.01.15.22.45.52; Sun, 15 Jan 2017 22:45:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750980AbdAPGpv (ORCPT + 4 others); Mon, 16 Jan 2017 01:45:51 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:65352 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751354AbdAPGpc (ORCPT ); Mon, 16 Jan 2017 01:45:32 -0500 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>; 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 Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , Bartlomiej Zolnierkiewicz 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+NgFrrJIsWRmVeSWpSXmKPExsWy7djP87rsOTURBt8fK1lsnLGe1eL8+Q3s FlP+LGey2PT4GqvF5vl/GC0+9x5htJhxfh+Txdojd9ktDr9pZ7VYtesPowOXx85Zd9k9Nq3q ZPO4c20Pm8fmJfUefVtWMXp83iQXwBbFZZOSmpNZllqkb5fAlbF5Q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1MEt0v17CDJNgEDCW63naxgSREBJoZJRqW9II5 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?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170116064526eucas1p150c6653c9f1fac798ea79f6bee5631a1 X-RootMTR: 20170116064526eucas1p150c6653c9f1fac798ea79f6bee5631a1 References: <1484549107-5957-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 '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(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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; }