From patchwork Mon Jun 25 08:08: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: 10485251 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 C8ABB601D5 for ; Mon, 25 Jun 2018 08:26:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B35C028845 for ; Mon, 25 Jun 2018 08:26:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A7E9E288E8; Mon, 25 Jun 2018 08:26:27 +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 3607828845 for ; Mon, 25 Jun 2018 08:26:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753279AbeFYI0Y (ORCPT ); Mon, 25 Jun 2018 04:26:24 -0400 Received: from mail-db5eur01on0072.outbound.protection.outlook.com ([104.47.2.72]:2112 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753154AbeFYI0W (ORCPT ); Mon, 25 Jun 2018 04:26:22 -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=0ayCpQW8C6/G7Ccdosk/narBWzdyBUvJ5tdAiJ0hJvY=; b=ovW+Z4k8s/Ma8BHN4xj+XiJM9nO5sNuSYCyEEmn7lpHAZ0tuLaqpP8aJi1WcorWcxa9b2R7C9IUG3ui6vcfuE5e8Pg6iwTivpFzygHfKIEBWDDs7NdbyJIBkjEtpkls+rL3lLZCDd5uGwYSkjXRFasIK978KNJb5AwcmOXr6ccI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=jun.li@nxp.com; Received: from b47624-OptiPlex-7040.ap.freescale.net (92.121.68.129) by VI1PR0402MB3920.eurprd04.prod.outlook.com (2603:10a6:803:23::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.24; Mon, 25 Jun 2018 08:26:14 +0000 From: Li Jun To: robh+dt@kernel.org, gregkh@linuxfoundation.org, heikki.krogerus@linux.intel.com, linux@roeck-us.net Cc: a.hajda@samsung.com, jun.li@nxp.com, cw00.choi@samsung.com, shufan_lee@richtek.com, peter.chen@nxp.com, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH v7 07/14] staging: typec: tcpci: remove unused tcpci_tcpc_config Date: Mon, 25 Jun 2018 16:08:39 +0800 Message-Id: <1529914126-22550-8-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529914126-22550-1-git-send-email-jun.li@nxp.com> References: <1529914126-22550-1-git-send-email-jun.li@nxp.com> MIME-Version: 1.0 X-Originating-IP: [92.121.68.129] X-ClientProxiedBy: HK0PR04CA0004.apcprd04.prod.outlook.com (2603:1096:203:36::16) To VI1PR0402MB3920.eurprd04.prod.outlook.com (2603:10a6:803:23::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: da0fc2e0-bb19-4155-aa7a-08d5da7553c9 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:VI1PR0402MB3920; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB3920; 3:B7XUou/QK5h4xLIiW/Htv4063vGnRu4kySsjd18HKyqjXWxV3sd7lkhGCCdFB9W8GCSLt9rvYVm/VkplUNyx7r8XgbhBdd+sl80LnJYov89S47e2tzylGdViceqXnEtveA18Qfbzin7LLJdEggPc1XRe0HFy5MBcCsQFsoFoVSIijnwMAbHIa1ejokg8rG91PqK432HTI56qxUuwk5UiRav6pWEZo9rMOBhx8cjX5poNGaJyc5N0eRW95oO+4AmC; 25:hdbz448c78QF5QRUq/oI1FEBlllg1KAzt4wu3y564KY08+AQWE2lDKcBEwe3Bh0t9JnkD9lrvjO4egiTahonoLbpK/Bemufl5w9bFS2sF8zzCEOdcLa0fziA9n8b5e1P6FPFVyfzBYrck8CkNZji44Kx2BF2TQpm4R+KLOQu+S3lFUQWAP2hqETItI1zpw5gf8G2iEV1HcKzlNYbLLv8FKgu4XLFSt7YjGSynWFDw8W4dyMceAnxZZReTec1D2TrQPfagPm/ATQTPzA7PFmAVPXbt/sfw58dPV5q+zEmk2YtxB3E6mjO6LdV/Jyqt/Y1A9qoztMlhA6TO/KJ0VMr8w==; 31:YlBQWOVJwx2HwoJI89KxECml3jchRFwtxQRaOktWYxx59W/8WFL995kqZQgT8Ajca/BTKM0c/ENhJEBdCHCSef4dPatpEGLVDADT3TBWur3uxlVbW1JxY0g7ZKIIFjmQbP71G6/cVOg4P1mMBRjMLxhSg42wz9vvZi8EAsKs3A6qxw0iEeHwWQYosmee8b265MllRHxFQ016/PSgxS5PjTj8oAXdDbxYXtY0/XKuGrs= X-MS-TrafficTypeDiagnostic: VI1PR0402MB3920: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB3920; 20:lhyc2xEvLJdnxti7MXNRcDwGVzkvCLvaSzFoHqHjjRG6X5EwWaCOlArUEq5vhe22dv+XvD+2Csh2BSslAfjaijMZffiYfIGwFdlr6a7oflcK1ZwUGCD8vOYNZNDHuVsXmIWa93bAl+4mjPR24uI3ef47SSynKA2qHyqgEGvo4ZPo2j8IydAVX3zYc2cDTQ9qpihZuBz/umpsrQGxGChbz7saNESedcSyzDLxG0mAh1obGtc9A9TEvucgomuPktVxVKnROJtUQsO5R4be+HCgAU9h0LJpM9zjGPVe0okYMQQiTiEjM9PfU2gxL21CUF3nMj4TEKLEs76qV9Qimdk3V8WtG69mgrZm02G9/TbWUAlM2300sHWJKKhF/sVMRdCH1aCgB8rCTQ/0ZzC6m5jrwUd1ND2WlrN37W9o17wasYCcWBsYz0HBT5hAq748zUb+KMq8hMvibTOek0EyeDoaZtfjutCqK8e0ygLY5VpxinQk6g1GmgTz3wpy4RIco7xF; 4:lX/8nGtzRWu7PEsdEUzVBHEwbPmmvgalxwMD1RHZQT3VO0i4gHXFOs4t/Tqy5/SkSMx3iEMNspwMzcqs9vB6so46CruZ84qHtGr9VCFu3OyGezmkS753cBV2t9SF6gx0RuxfY4b2c+nXg66W16qpP5POEXkNLMEoNMnVDal3pJK2WwZ/uyQzDInNEKGA4VXe8/n/mpOFddvX6T6T8aMBo1yPCm/wG6pUcAmm1Y1h3kB9+ygyFyAw2B8qpUhT2jEJ30xQ/Ep/8gC3zUAXEWT6VSPXZcnWjmM7jfEOxJD2JFyKDJzpHPnR2G48P4uXbJtaSP7cdjnjlIddaM+aY+44NMjJG2eaXYxZYIdo28PE34M= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:VI1PR0402MB3920; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0402MB3920; X-Forefront-PRVS: 0714841678 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(346002)(39380400002)(39860400002)(396003)(376002)(199004)(189003)(53936002)(25786009)(47776003)(316002)(2906002)(16586007)(6486002)(36756003)(4326008)(386003)(6506007)(186003)(6512007)(478600001)(26005)(16526019)(97736004)(8936002)(86362001)(50226002)(52116002)(476003)(81166006)(81156014)(486006)(76176011)(305945005)(51416003)(8676002)(2616005)(6666003)(105586002)(68736007)(446003)(11346002)(66066001)(5660300001)(7736002)(50466002)(3846002)(106356001)(48376002)(6116002)(956004)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB3920; 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; VI1PR0402MB3920; 23:WXAbNR1IJCajwNuPXEADp7daL4UiNsGimnMgBYY?= =?us-ascii?Q?taB3M/MwB38B2Zp/2+xBWHLem99u0HVzucfcfTLUjyvOfl2+bHbSxbeChsFY?= =?us-ascii?Q?XPgfiV58Wtv3+Ozq6JnLfCbUg+QNjWzr/U86GabS7udq+/c40A+FbKauGn4p?= =?us-ascii?Q?GYkoILolquKptwsk3nRIpoyDfLLSLV8OoHCIRBYAMboBCkTlZW/yAMljlheM?= =?us-ascii?Q?dpcwv9O0wFSyJl2FVJ8/T3/cMH4JQ5R/O4S12cJI25svmq/e9OxBk/9rPjAP?= =?us-ascii?Q?lVcwA/jdO3/CGjNQabHlr6fjrHMzeTFm/N+cep2XkcnuRHJTLD5tZ3pf5gGv?= =?us-ascii?Q?kpJhHVAq/lvVZWdIoo58MkzaBcPfyEajBzd7Bt0ZTOYUdYoPdETPvfYUM30c?= =?us-ascii?Q?E05FIvsiovrGlVSf1FRs761HtMRbN5hx2TShSoF0ZSD9OuH24iRM6oftVQ6Z?= =?us-ascii?Q?m7Fy7Bk3U/W3uczNSxLaApVFR9OF+wt3kbLFzRCHduXHSqlfW5yEMh5/KO6+?= =?us-ascii?Q?mKGxm+i5R5nQPwWqx4V57B/ZMokJF+Corw4yYTaj+MpVgqN0wJ/kpYqKXAqJ?= =?us-ascii?Q?HRchbbzfpoSdo3bPhbqriYBZr3T51+PUJsFVTUEIepVytY2pD85AJRI8Fa60?= =?us-ascii?Q?TheFfDVsA0eTscoW2vL6XTPIjSsyoTte8NSNQydu1LlahPKv2kXmnDb2UShW?= =?us-ascii?Q?HcnBy5ccQTtV4lV/3Gb3sd7cDAvFZbQspPleeseqWhiIuCxsvfpZ6WVQwMbe?= =?us-ascii?Q?WsR5ygAGBYrW+rWbSYbTz17+6oYbijj7STvlhlXfr1Ml5oCSzYc3O4WtYysW?= =?us-ascii?Q?ETAYaJDKKQBpodNCN3QTn9oAUksUflyFa2M/7C3ZYVFravDjb5wvH/gWCUzM?= =?us-ascii?Q?qb9JUbkRgA3hK12+TeRSFnUHYlromO5WWGqRBG8pxi2oH2OsspOOybrnOh4N?= =?us-ascii?Q?DB3sW7jc/K7rRdZix3vqpcUWqyJ/2lJOAowF0xyTZsLKugbBFnWyFpOa0ZyW?= =?us-ascii?Q?YWtNWGkC/fafnYE84B6dc+cZp4nSfWn1KLm69XnscnVD2euBJf3NhtBGmeAv?= =?us-ascii?Q?tEALlATA92uQASdMGQyvzwx7OZNrCrulEI/IctzR5efGToZLBsOrGyoI5BGv?= =?us-ascii?Q?/W+UaVfYx4VE9DB+w1NV0WzW1sD8J7pC0syBG3yll0CMxPPMqDDQCsS3Md5U?= =?us-ascii?Q?lD3iBCR7jAwQvHRE=3D?= X-Microsoft-Antispam-Message-Info: prMHuY1mbwcOzEIakjZCtKOikJU6XAyIb0cuyc9DAu2ysNpFFshhBBeAUs5RQk9Q8KSKnbC4ZdX/eT/BF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DiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB3920; 7:JCwTSrKNjumJ+ZTzM4b2YRfGuoTNYGRXzx9EWizQknqV+bT+Aedy0dGSOXRfkyPvh5EUucz5Gp+EenMV/b7QMCz6dD2WjAj0iHtc28y7VgjpU8nRGJkgRgjUK6/Nctc45rF0a4JwAnqgwVfsGH4X9a5xEBCCefDDZKsCd+SS2O6d0/E+qDJBdGLOpZr/PCBJdv2ezB+8UOWEqi3DNxmIJ6ZF3Sap+90GvzBT2sAij+n9ujNmuR2pJt2ZKUGCLD7x X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2018 08:26:14.8922 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: da0fc2e0-bb19-4155-aa7a-08d5da7553c9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3920 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. Reviewed-by: Heikki Krogerus Signed-off-by: Li Jun --- 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) {