From patchwork Mon May 28 02:52:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 10429715 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 23283601C7 for ; Mon, 28 May 2018 03:09:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13DE828AF4 for ; Mon, 28 May 2018 03:09:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 08B8E28AF7; Mon, 28 May 2018 03:09:56 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 8B0AF28AF4 for ; Mon, 28 May 2018 03:09:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753148AbeE1DJx (ORCPT ); Sun, 27 May 2018 23:09:53 -0400 Received: from mail-eopbgr00055.outbound.protection.outlook.com ([40.107.0.55]:11520 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753137AbeE1DJw (ORCPT ); Sun, 27 May 2018 23:09:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XES4WJHu1wOgMSdH8v+d8GqeA5tgpSi9/wmkrgVJD2A=; b=QgWOFc8u9FlSjrdkXcoVo440OyWvlta+MR+pWIsPob/jGrjTAeoFJQAisOxPEH3YqXC2V9WpDniVt73zOOYo1zRf8eYHw5L2XWgzT8oZwcx1mcrnAGc3HKzROJGJyA13Mv36dLam3mzn0DobxYuZ8cS/smB5/pl/LBqsb4xjgLs= Received: from b47624-OptiPlex-7040.ap.freescale.net (92.121.68.129) by VI1PR0402MB3919.eurprd04.prod.outlook.com (2603:10a6:803:22::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.797.11; Mon, 28 May 2018 03:09:44 +0000 From: Li Jun To: robh+dt@kernel.org, gregkh@linuxfoundation.org, heikki.krogerus@linux.intel.com, linux@roeck-us.net Cc: cw00.choi@samsung.com, a.hajda@samsung.com, shufan_lee@richtek.com, peter.chen@nxp.com, garsilva@embeddedor.com, gsomlo@gmail.com, jun.li@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH v6 07/15] staging: typec: tcpci: remove unused tcpci_tcpc_config Date: Mon, 28 May 2018 10:52:39 +0800 Message-Id: <1527475967-15201-8-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1527475967-15201-1-git-send-email-jun.li@nxp.com> References: <1527475967-15201-1-git-send-email-jun.li@nxp.com> MIME-Version: 1.0 X-Originating-IP: [92.121.68.129] X-ClientProxiedBy: HK2PR0302CA0015.apcprd03.prod.outlook.com (2603:1096:202::25) To VI1PR0402MB3919.eurprd04.prod.outlook.com (2603:10a6:803:22::32) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0402MB3919; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB3919; 3:zY6/Sdikqb/isFbHtKQejMTZaHmVuURKTrWxr8AwEGsWuEjSLidJ8RQ5x7V4KnvSjRtczgIgdbHoDHxa3g+JLTVCuoXYpYzMsKeA8vf8KDAQCgXQyrCxe2Y4heSflC1+IpCKlpUXhZv8B7tOIyprinKZ57dzs/P3dkyraHUGNZS4JzBTOlmS6zzuMYn+Zs3pxaxOSEZVi8H7xLMZuUOjBz+uqlevIrP44dNwfbioturer04vvbXSKt+WPh+phGxX; 25:+eHuo/3StX1BU753cywcl1VLlg9NSwBc7wScedA/AM1xMF7lAnr8vQQDiv23VojU/QF1rIoXavwo80RRbOAZqS7jJlkrPNumc/nsNIe6z+0Z99zOdi1PmgiJZQkNpam20dFqmCtGpRTE99qfe5sMx6VLzmmSRZC16ddIERAUdYx/9WRU5JUChAuyFsy60GXbId3Wne0rn2hxvtQ2A1JKKMiOe02qePkpeRIq1/9oNrYvRJ+HHojs3kFCFj3owHHE1uiw4pCrMciX1AcY+FG7iaoD+28LitFipKkPc5zD71H2TW7fdKwEFqWGLtn1+ibv1ylh7xlckVm01GWWM7JZvg==; 31:YHdYSoO/I49RTLdtau07IEI1+9UUWYOOlNMgyJPqAwESwf2oQHiJyAH185PZ9lJuVKPdHQzBNxS1DrWQCEyeV2vl5WcAgo1xk2JWjYiyKg8Y/8gLe0M5cRSgPbUKBxaNhMFxzOmLpD8Tx6eiyyWRj8dMnmlYI9NTH9geMsqQoWWUCDIzBN/CnB42LB5aFSLLXy1AAvRDTGTJCCMjLIrEyMVckGUhwYodshBbFXcjoKI= X-MS-TrafficTypeDiagnostic: VI1PR0402MB3919: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=jun.li@nxp.com; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB3919; 20:kA88UQE3gpbZLQDubXLFcPLXK22JAoViGlccLBy72ABHnJiaHqWdZ4qd8lggVhME/5IKcLC5Bj4gaHtJ6DDfjDcZP8+vTxZgAfzVm0dEuKvYJR/uZ9Q0913eTIqQkxp/muJIKTznQwQmGmivkzCCfoIFk3PMZY0GI91El4vdDtzqiuPmCqAugG0ZyYr1e3qJxEWe9Av6M7VmbaFp7RrZojiuo5K3xLkhfH/t/IzzT1K/GbOoh5wHz8wnDYml/6pw4zzBfd4r1oT2i4S/7T0I+5svr/N2/brKqKtN2JjFuniyQycX+67Z9CQZIdN4q/sAIwkTR202MShhV29d1ALrPBUTVwrbI62EroAnsfxaN6mL0h7XL+oBT4UoS/dHO3ep4cOLYq4wSQ6yuhcU3GLvRPJfeJSVsApkquycI+qMYj2eroH/xgImAVIBqJRZq+Kl5u7wT6KUXNzU9SP/fI0NXLcso9wE1uW0GhofCh7A0Pc9zpVjkq9V+O1wMVWMXC7V; 4:2NnkbtdJ/hvvqVJnUYzUyvL7+Js0PcfYdoMZJNB8MTwegjnWINfEEFCYXCyNuh04/G1PM2ttZx1kRI6mMJ6JBZFd4DA/3L5aBcbiLDNOLUyhucjC0H3ybLZb5qWZy6r5R4+821latK0Skffc3Zlz8sEh6do8/icUwDt8KmyBTVZA4cVep0Lymm/AeVySXK5UXY1/8t1WrJ9DFi35uR5KqvTP6kdllEJmP9vurugBXPqEvuQaBLYPI4bnEABvDHVC5gJ6Z5QHgx4dxFZLnW6hS1X+2gpdqm5aFGilHfw58obLkMnaxv9cxywl9MS/b8mU X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:VI1PR0402MB3919; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0402MB3919; X-Forefront-PRVS: 06860EDC7B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(396003)(39860400002)(366004)(346002)(376002)(199004)(189003)(6506007)(8676002)(16526019)(305945005)(26005)(7736002)(386003)(486006)(446003)(48376002)(11346002)(956004)(2616005)(2906002)(66066001)(81156014)(186003)(3846002)(81166006)(478600001)(8936002)(50466002)(6486002)(5660300001)(6116002)(6666003)(7416002)(36756003)(50226002)(47776003)(39060400002)(476003)(86362001)(106356001)(68736007)(53936002)(51416003)(105586002)(16586007)(316002)(4326008)(6512007)(76176011)(97736004)(25786009)(52116002)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB3919; H:b47624-OptiPlex-7040.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0402MB3919; 23:Jl2hdyxnX6DxvqVTinmiDL5+rUGaEaiJ6zKR9ih?= =?us-ascii?Q?H3nqNlK9NxpwuhfL8SgOeLSF73A1tStutCS0rDqD6+H18A0qea9sLAdzlCul?= =?us-ascii?Q?rKgkywXO4uSHmnAMgcU+80BWujPQlCGBTOZX7mVZHqD9hSXI9SVg9ZzAxiX6?= =?us-ascii?Q?Jd4l+uLO0Q5wOlPsgkVS5tN9eHzHgzrCJKIlrP6zi5rwQjJmqnWrdNFL/XVD?= =?us-ascii?Q?QUuJpLGstzVaTm1Osjg4xfQy/TeB/AvW13mPqIIZ4ljVvFVwOaIklNaUTjjd?= =?us-ascii?Q?v0VITLLfHJhbYB6L4DjeHrTIizCquMBrg28bp//ukAj8iaqwW70yGUTTdueh?= =?us-ascii?Q?7YRq+SFVnjppkjuIItSrwD6U8DOUN2h3sEac/ZrYSntvTcqChR2YZ0RUJUG6?= =?us-ascii?Q?B4B8zUMEIuuiozPzkWw9iSykH690CoULAXvzyl8zxJVmsl9ax0V804og+RcS?= =?us-ascii?Q?NbSLrNP9iZY/L24SuRnTtZspiuk7pZ8pQP+qMUA428lg5SZBI8c5A2c4G6wP?= =?us-ascii?Q?ugKXB290qrH5eQNDOfykaetvLpp8lXvx8SXE3kByYkjcpouLNRg3pEawXakT?= =?us-ascii?Q?dWwVHtv3GNWns5JIjiXq7O3jfx6eLCdWQZRpOGCJP96Bex6zFq2VEmCZUNkh?= =?us-ascii?Q?IT4w+TBk2q8+BX/kyv/IsM4bD0oREvZxEWRenuBOkZ0bQDlo+bYEts8XvXYP?= =?us-ascii?Q?rfu7xwVXBhEWqJbxEqqpiEcIDd9wgNU0Z65XUo2X+U5vzgB8vKPqJAJGik5I?= =?us-ascii?Q?FeJqXJmd/mijpd5eP1RHMiFCCRFaKldCcG4H79QramJVQjntVMareOTjBZMK?= =?us-ascii?Q?oz72eRtwZRT4T5NGB3AlyL1BG6HoCfryESh4vQnPs4khJzjYHH3KO7zBWxLO?= =?us-ascii?Q?0wPJxzM2gJSlbwwuaICIYddp4JROi94AWRI7YNHIkatkKF+zaA0xKi51fd24?= =?us-ascii?Q?+XtS1/eXb+lRLcmF9IglvWFuhLiEGo9OujHJIciA4Z6YCT6uZ+6U4MOI0PPZ?= =?us-ascii?Q?68aRGf9duVE3RwcIWilbPNJGzMt/eDLatO6e4ZV+6Tr9P5UZ8kT7FYslGUay?= =?us-ascii?Q?QJ5q7WNb/3BnyrLSHIUgDqGkCFQbvizl4smG0QL4ksRPZIwnLnUcb0janTVG?= =?us-ascii?Q?Q8cfbEp1Y3I3nkeVXBLgGqJpZSliO+I0IYxfLjRg9ZZqER77ajzsf87e3FB0?= =?us-ascii?Q?Js90FjjJ67OKMAzhpTkrddYWY2IaE6ZkrzIuKIpDAfbCWdLAeTPmc6st+mA?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Antispam-Message-Info: 0VcAn7lgKe5XlmpWhoFIS2AUG4vADehr8T2Mg7lj8EsyfX5uV/6kFQhSwrObn+Efj4avRja1i0iCn2maAMv5KVT2ph7URX3xE/fkh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Rp2UQHhob6nz4VkZtXHRII/tzfNvGx6k3F91yoHnHE3IKY/otZdSEQRLWRyCupiGEfyPYxoBnKk/Vv/7X1QzeMnxnGmy46XlVc+rNDw1oEP1FdIfDzQ+t35M3IQ7igaM9WsbUWl2uQyZZ95kU3ky5/qbm X-MS-Office365-Filtering-Correlation-Id: 89076fc4-ec8d-4d3f-3f1f-08d5c4487969 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2018 03:09:44.3453 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 89076fc4-ec8d-4d3f-3f1f-08d5c4487969 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3919 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since we will use config settings via device properties, so remove the hard code tcpci_tcpc_config. Signed-off-by: Li Jun Reviewed-by: Heikki Krogerus --- drivers/staging/typec/tcpci.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/typec/tcpci.c b/drivers/staging/typec/tcpci.c index e59547a..076498a 100644 --- a/drivers/staging/typec/tcpci.c +++ b/drivers/staging/typec/tcpci.c @@ -464,17 +464,10 @@ static const struct regmap_config tcpci_regmap_config = { .max_register = 0x7F, /* 0x80 .. 0xFF are vendor defined */ }; -static const struct tcpc_config tcpci_tcpc_config = { - .type = TYPEC_PORT_DFP, - .default_role = TYPEC_SINK, -}; - static int tcpci_parse_config(struct tcpci *tcpci) { tcpci->controls_vbus = true; /* XXX */ - /* TODO: Populate struct tcpc_config from ACPI/device-tree */ - tcpci->tcpc.config = &tcpci_tcpc_config; tcpci->tcpc.fwnode = device_get_named_child_node(tcpci->dev, "connector"); if (!tcpci->tcpc.fwnode) {