From patchwork Thu Jan 19 13:48:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 91902 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp278489obz; Thu, 19 Jan 2017 05:50:29 -0800 (PST) X-Received: by 10.98.53.65 with SMTP id c62mr3959384pfa.58.1484833829500; Thu, 19 Jan 2017 05:50:29 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68si3606956pfw.105.2017.01.19.05.50.29; Thu, 19 Jan 2017 05:50:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-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-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752754AbdASNu2 (ORCPT + 4 others); Thu, 19 Jan 2017 08:50:28 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:60332 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752792AbdASNts (ORCPT ); Thu, 19 Jan 2017 08:49:48 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OK1001GQ51XA570@mailout4.w1.samsung.com>; Thu, 19 Jan 2017 13:49:09 +0000 (GMT) Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170119134908eucas1p11db7a7f5dfd3b09d2dd48e25313886c2~bMG1twPbC2079720797eucas1p1g; Thu, 19 Jan 2017 13:49:08 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges5.samsung.com (EUCPMTA) with SMTP id 03.68.17477.4D3C0885; Thu, 19 Jan 2017 13:49:08 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170119134908eucas1p1adfde3c9f750f3757367f9dc3abf7dbc~bMG1HRIQQ2172621726eucas1p1X; Thu, 19 Jan 2017 13:49:08 +0000 (GMT) X-AuditID: cbfec7f5-f79d06d000004445-05-5880c3d4ee89 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 05.31.06687.E04C0885; Thu, 19 Jan 2017 13:50:06 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OK100BYG51LGB30@eusync1.samsung.com>; Thu, 19 Jan 2017 13:49:07 +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 v3 08/13] pinctrl: samsung: Remove dead code Date: Thu, 19 Jan 2017 14:48:48 +0100 Message-id: <1484833733-16082-9-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1484833733-16082-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLIsWRmVeSWpSXmKPExsWy7djPc7pXDjdEGFw+Lm2xccZ6Vovz5zew W0z5s5zJYtPja6wWm+f/YbT43HuE0WLG+X1MFmuP3GW3OPymndVi1a4/jA5cHjtn3WX32LSq k83jzrU9bB6bl9R79G1ZxejxeZNcAFsUl01Kak5mWWqRvl0CV8aD43uYCj7zVD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gVm4ChRNfbLrAqEYFmRomG Jb1gDrPABCaJmZ8amECqhAVsJPqW7GcBsVkEVCVOHF4JFucV8JBY+fMyI8Q+OYmTxyaDTeUU 8JSYOqeJDcQWAqpZsvQi6wRG3gWMDKsYRVJLi3PTc4sN9YoTc4tL89L1kvNzNzECg37bsZ+b dzBe2hh8iFGAg1GJh7ejqD5CiDWxrLgy9xCjBAezkgivzd6GCCHelMTKqtSi/Pii0pzU4kOM pkBHTWSWEk3OB0ZkXkm8oYmhuaWhkbGFhbmRkZI4b8mHK+FCAumJJanZqakFqUUwfUwcnFIN jPOiHh3cWfity+xxJV8Dq5KoU8bXmiSeuKkiL/8cVT6yuc6+9UncgeVKi5/PO/20waVxytKN xpvLbG45vGaSmzn97Bqn4ouT+mdmvvnImK+18063fUe1RFWAZYNnZ2tRWvWtPfON3m/eZdts IH17HetPg+r1tjNipktUTNvI46t9pbXHQuM7nxJLcUaioRZzUXEiAK72BleQAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170119134908eucas1p1adfde3c9f750f3757367f9dc3abf7dbc X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 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: 20170119134908eucas1p1adfde3c9f750f3757367f9dc3abf7dbc X-RootMTR: 20170119134908eucas1p1adfde3c9f750f3757367f9dc3abf7dbc References: <1484833733-16082-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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-gpio" 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 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; }