From patchwork Tue Jun 26 23:45:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 10490337 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 7E0EB60386 for ; Wed, 27 Jun 2018 00:03:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 701EA1FF13 for ; Wed, 27 Jun 2018 00:03:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6399326E54; Wed, 27 Jun 2018 00:03:06 +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 E99931FF13 for ; Wed, 27 Jun 2018 00:03:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932814AbeF0ADE (ORCPT ); Tue, 26 Jun 2018 20:03:04 -0400 Received: from mail-eopbgr00050.outbound.protection.outlook.com ([40.107.0.50]:22016 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932104AbeF0ADC (ORCPT ); Tue, 26 Jun 2018 20:03:02 -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=gUQ2A/igyOv0xLZ446PaN9bx/Kr9Fw3PGRkAXdJn+/VCSPQrddoTqYXe/qIFDS6+svrn9sztT3rqIwIwgqvGDBRv2+qPNY+bOfvGOKYvaZ3KFrnpBfplj92x89hPbVhUYrGv6B11wSoQN64CTBWGf4F9yfxgaCaYUPP20no1aY8= 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 AM0PR0402MB3908.eurprd04.prod.outlook.com (2603:10a6:208:f::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.22; Wed, 27 Jun 2018 00:02:55 +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 v8 07/14] staging: typec: tcpci: remove unused tcpci_tcpc_config Date: Wed, 27 Jun 2018 07:45:25 +0800 Message-Id: <1530056732-9640-8-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530056732-9640-1-git-send-email-jun.li@nxp.com> References: <1530056732-9640-1-git-send-email-jun.li@nxp.com> MIME-Version: 1.0 X-Originating-IP: [92.121.68.129] X-ClientProxiedBy: HK0P153CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:203:18::23) To AM0PR0402MB3908.eurprd04.prod.outlook.com (2603:10a6:208:f::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fcb446e5-a615-4813-7ca3-08d5dbc15897 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:AM0PR0402MB3908; X-Microsoft-Exchange-Diagnostics: 1; AM0PR0402MB3908; 3:2y7RI06mm2HLKp5o44fLZyU1FF1atQ7Lv2duTkREXZTWDbNOo6sTx+FcOg4CJKwQ8Z+cK8bGvsO1vBgz43vSVvHbx4admli8wnFpyO+jF4AK6hfnWKUyUcwno1B0cSz2T04XnBP1LfjQw2wXi2oQ/k85AlDeMvxRRMsc1Ne8YiGD8+bwG52vj16F9z+VWoA12OvBfrN/VS2Z2g0ojSxKhUL2A8Nf9ms1BmS75PCpw65mCWtZX7qTgz0imYFRZqyX; 25:skv+3wnQQZALaoBhl7aNrDT52oLXHUAOxd78AXLFl9QgVxec55Q/6PZXS9DxpR+D21Js3O0HO/GrnelzkDga4o4ComMHa1Wi3M0hV17vDar0OzHNPAEyPgcClzNyNxBudzUw5qE/OQUgrZjeS8JN4Po9NYqDOMAyEkAmMGYBcZ0wYa9O45bix0ICJJgv85qn4MwmGlhFO/ZIXhL9ZHbBjDWLCv2qCOTH0XJKEufxp92Z0LsafroufXBzXWFRliuzDx0o4RBQCnKI/0Ns2A5BlbYUsFG8h1hDQwt60MU73Ye626JOPazXAoQfjmBO0FYMlHG9snPo7WTiI7x/eTxAXA==; 31:GdI1Xncs+e1byv8/377LbejXuQ4JUYJquQAI9fM43Q6z2+Av4Jbx48i1oAdzk35t2jbg/j6/M/uK7VuP9/Sob5S7qm2+V0VMkepCDz3eTUezKa/WgSpshLS5/kqEQ0U/W/w1N+myjWp7+Idp16lvYNcw0GhKxnjsno34iDxG+LxZg4qGzTh77tUkgpOVl8NTae94Z1P6z6aXKwWRboIHgc3qB0FU/hIuEPkY1Adz3v0= X-MS-TrafficTypeDiagnostic: AM0PR0402MB3908: X-Microsoft-Exchange-Diagnostics: 1; AM0PR0402MB3908; 20:h0cWy05Kveu5K9L0n/rTHtkKjqtrw4FAaV15c4mkS+T0MYOV6OWrM8hfrqWjjGHnnPQwc50v+aNUDzBCdvcKDwWiDkNPzRIsSoDFKz3AzOrjGTlrWos3BXSIm845bHBHyVVnOU2GKgNVMkc0kG1rZ42g0yjy37wB75C2baZFnz6gh9KuHrVSOUCXSk6z9LQ8mmJrBz/6lN0nA1//qMjSMQW2GU6zin+o2OgebopAR8snGbA0Z+x+8Mo+MfoWuZmDlM31yINXDvdFFOi/dH+3xqQ+JjqCrVgmj+to/YX1OPC3rBF2yCL/gTlYLSqlfiO9QxnkeiKi2ZGzL+v2qLvzlBRj4CmvjMzcvxZIH9qWLM+8lN+smKfJ3hltrp++SC2v8k7V6PPdXaad22C/XJLCet2gfRueIa53Dn/K7df7fZ8pOCeUkvpgweHKWbHgZhdTL8+dnHWJmjccAEQUdtu0j+Ij7J/m1v+G5eaka12xb5AQZ+TAYrBjFlihqupbeLbX; 4:vCTrBXqG69RbUm8U2LyDtASHe/iDvLIJolYPqlN4F085Qb2G/jJpgKWCDjWwEvmx3crB1soe+f+vjZISs56KoKj0ZcqQ2qcQiwcneFPs4UB9Q33bQ9ZgWZl6Ys9N3pBwv18ngptHfPZBcE5orf3b51YMOnuF5XgLeFrFGUjaepE7OBj/Ecr8XGAMSpwQ9dz8r/HejP58McsZx97oX1KZ11+uK+lvM9lNwNVQGup6ZBLAG8VFP4z598O3zvZ4xtKi1mKW/w3APa01Txg9+fl3X2kKN4OXLSxQnfxE/YdQ7fE2GEGDq7/RsRfxvFTowDRPAEY+Ub3eajsE9xj+3A4In0g8JOeT0cLk8WhqY0i2GRU= 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:AM0PR0402MB3908; BCL:0; PCL:0; RULEID:; SRVR:AM0PR0402MB3908; X-Forefront-PRVS: 0716E70AB6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(376002)(366004)(39860400002)(396003)(189003)(199004)(2906002)(7736002)(26005)(6486002)(305945005)(486006)(48376002)(478600001)(86362001)(25786009)(4326008)(16526019)(186003)(36756003)(50466002)(16586007)(68736007)(6512007)(47776003)(51416003)(52116002)(53936002)(3846002)(386003)(6506007)(6116002)(76176011)(316002)(97736004)(50226002)(476003)(2616005)(956004)(6666003)(11346002)(446003)(106356001)(8936002)(81156014)(66066001)(5660300001)(81166006)(8676002)(105586002)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0402MB3908; H:b47624-OptiPlex-7040.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR0402MB3908; 23:7V0An1QSv0QQuB4Ujns4W/HZ2AtM04QSVv71M9L?= =?us-ascii?Q?Pui8kABc18MBC35wAL/PcM/6FNwv8YhAO2RjTnsV3XmWO9qIaFpPS4cFoQY5?= =?us-ascii?Q?Yhau4kBrjyAVhmdKSpvkNzIwP2lvHGtAzn+a0UuCpqKNhFUHNNz164zzzPkS?= =?us-ascii?Q?3uvRPgHUpgaNkHy9jVyo5Bn7yGXBkRPG6mFz+n9ZjhXMS6VVn7+L+3XQAxI0?= =?us-ascii?Q?Gz1T1XWPLy13+YFf/v476rAzimDuR5eiZYDKSmiIGNXoBFjjjrovsKTyoR0J?= =?us-ascii?Q?yG4zcREiYL8D5PBdrCKIAdVLBE0hkP8V96EBylp/BfqbMuEfHF/wgr72F8FB?= =?us-ascii?Q?JRfwTQnQWAKGdrrVX+KqEMQ8iJaVQ8Ul7A/y3MXHfoEVYEId5wfS/8iSAplV?= =?us-ascii?Q?5+cT3hcaBcyjeU+Gu0Fkv5T9MHYCC/jqpxS9TGvxnrNd+l8O3EibeYAJ7ah+?= =?us-ascii?Q?2dmAMHk6K1rxLHLmuF5oP+P4+4xi5kslvYpV3hfapZr7OBLSBo5I0hpRoXPN?= =?us-ascii?Q?lOsFlW8vzGVgM2fXy9P8AdW9fpb/Tg/m7Vt7XFkbfLOv1FhclsnqaScB7IzM?= =?us-ascii?Q?ekuMFMZCx1EcYYeTZI0is9rutUvLyNqV4a4r1XyPgq1XalIRqAuAuRxoLVYt?= =?us-ascii?Q?qo0APhar0wdDBkt1UfbASvYUQoK3fPJ0kBVKjuSgpZZSM20Zdt0pv8JgEGFZ?= =?us-ascii?Q?JGG9hznyPWgjSEESZLlrZCA/YLPrHVqNg8eR5uEm4PwqnnOHsX764AkDAzrp?= =?us-ascii?Q?z47nXe2F6VA0nImz0JsMljZYwvVa5LT1BM5mKj1FkmK57msDKXdBMhsJALYU?= =?us-ascii?Q?f0HY1tb0rH/FTm1QMBwftptxgDSepW3DUDJ8W/oBgTe1DvsxVmvUST69iLjb?= =?us-ascii?Q?MEDhOaKrSIeh8uIvkURsl2THReNiqiHc98WIFQOXS3l0u6sETq5xMbIKCFAT?= =?us-ascii?Q?V0Gk8Zdoxv/7EXsjDIPuFIVOhkb9yznEa0YAVd4MblwirELReg15xbj9LjPY?= =?us-ascii?Q?o/pvGZ0fph/knPB3zihafM8JLeM63rlO42r9YszMh5hRB2lbTSrYZStACFh0?= =?us-ascii?Q?yZxq5NMdXygGTYvFQ53laoq0nw5c7+ZblXWuncVur6KzOdJWNqs4N9xGDsqM?= =?us-ascii?Q?iocm0/3tgYdrCJrU23J7JyJNietVUAOd+feWqFspqNZt0VcrqGmWBww=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Antispam-Message-Info: 1RhEoQmmuBMn62681ZI/FkYbqWR1g+oig78w7qt3nxmhHfh/5n9W2N22057ILqC5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ls1oNw6VVMpq8HVb03IL2JQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM0PR0402MB3908; 7:KHDg+5AolDoo226nHySS9b8fQyBQE/ckBy0DgLQ5McxkND5+q1aqC10rUbH2F7r7mvBwqRQW0a54ng3owU7wEbfTqYz25VPbQoihm6psPEL41tvlzOgc4vl3a80Zd8G30PzgDrL7l1tOIiaNpjjiTIGoCHXVFOiQ9mZc9J6LQxaaJPJ15xiPkxGpDyhCkanpuq3w9MiRXRTKwVdgFvFurrS6kE0lyPHT3AydAiF+C6mx//A7A577FxJC2GXgAC6Y X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2018 00:02:55.8817 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fcb446e5-a615-4813-7ca3-08d5dbc15897 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3908 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 Reviewed-by: Guenter Roeck --- 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) {