From patchwork Tue Mar 26 13:57:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hennerich, Michael" X-Patchwork-Id: 10871219 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 93B0717E6 for ; Tue, 26 Mar 2019 13:52:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EFD728756 for ; Tue, 26 Mar 2019 13:52:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 731A628B16; Tue, 26 Mar 2019 13:52:41 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 E2EC028756 for ; Tue, 26 Mar 2019 13:52:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731599AbfCZNwk (ORCPT ); Tue, 26 Mar 2019 09:52:40 -0400 Received: from mail-eopbgr820055.outbound.protection.outlook.com ([40.107.82.55]:49120 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731595AbfCZNwk (ORCPT ); Tue, 26 Mar 2019 09:52:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gRkdhbI3QFYyyqH/0r2qY9CHSph179k0ihKImwFrxdE=; b=peptgGdFV3Dt6EBOPC7CHa0vW6zxFsbdZsU+stOCf1yRrxRBH23ct18Ei5tanI7r9VRvzGbEhWoU0l2m/NTlWpxxkJ87wUuC8+8v8y1QRsw5fr5b7BvgRkgjhVXQXcbaCGmVTN89As/qARRj0Kqi7YGqIJl6wX+wgv+xIsU3N/E= Received: from BN3PR03CA0100.namprd03.prod.outlook.com (2603:10b6:400:4::18) by DM2PR03MB558.namprd03.prod.outlook.com (2a01:111:e400:241d::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.18; Tue, 26 Mar 2019 13:52:36 +0000 Received: from BL2NAM02FT060.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::209) by BN3PR03CA0100.outlook.office365.com (2603:10b6:400:4::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1730.17 via Frontend Transport; Tue, 26 Mar 2019 13:52:36 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.57) smtp.mailfrom=analog.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=analog.com; Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.57 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.57; helo=nwd2mta2.analog.com; Received: from nwd2mta2.analog.com (137.71.25.57) by BL2NAM02FT060.mail.protection.outlook.com (10.152.76.124) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1750.11 via Frontend Transport; Tue, 26 Mar 2019 13:52:36 +0000 Received: from NWD2HUBCAS8.ad.analog.com (nwd2hubcas8.ad.analog.com [10.64.69.108]) by nwd2mta2.analog.com (8.13.8/8.13.8) with ESMTP id x2QDqaui024846 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Tue, 26 Mar 2019 06:52:36 -0700 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS8.ad.analog.com (10.64.69.108) with Microsoft SMTP Server id 14.3.408.0; Tue, 26 Mar 2019 09:52:36 -0400 Received: from localhost.localdomain ([10.44.3.40]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id x2QDqVPM023305; Tue, 26 Mar 2019 09:52:33 -0400 From: To: , , CC: , , , Michael Hennerich Subject: [PATCH] power: supply: ltc3651-charger.c: Fix typo in device name Date: Tue, 26 Mar 2019 14:57:15 +0100 Message-ID: <1553608635-29376-1-git-send-email-michael.hennerich@analog.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-ADIRoutedOnPrem: True X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.57;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(346002)(396003)(39860400002)(376002)(2980300002)(199004)(189003)(8936002)(110136005)(54906003)(50226002)(2876002)(48376002)(49486002)(6666004)(356004)(16586007)(316002)(36756003)(14444005)(2906002)(4326008)(8676002)(106466001)(186003)(51416003)(486006)(476003)(2616005)(305945005)(126002)(86152003)(426003)(26005)(336012)(7636002)(72206003)(478600001)(47776003)(86362001)(5660300002)(107886003)(77096007)(50466002)(106002)(246002)(2004002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR03MB558;H:nwd2mta2.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail11.analog.com;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a5c5b95e-7eca-4568-c2bf-08d6b1f24dda X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4709054)(2017052603328)(7153060);SRVR:DM2PR03MB558; X-MS-TrafficTypeDiagnostic: DM2PR03MB558: X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 09888BC01D X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: MfiD0+WkzOgHdgFUxY0S+ErtXS5lVbQTPFPMKX9J7hZqmMvhFLXEyLdNv3My/9wmRZ3ll120HXMasWS2x7r1EKI3j8/QuGBX4nVf9vJpcMw3HD0R9sy2IJo8Vom8VnHnpT4RAYb1fXmKZC77Z714e54tDJTLmCoqo7pAIGMqkj25nnmT0Jxzu/GU81rikCRxM78LH9P/0Xt663XPpheoItGapM/w7gEtJIVdEim273rAyb7svfRl4mDfsQ04Lnn5CCBY5ooWOJvH/wK6xoziGV8CWf8n+bYwfcMUh6LL7BM2y9FOiypQ+67fSm26k9RXXolljvX3Zt1YnFaIOk+BjLqavON0SYktFDcBIsmvBeFPTjR+Anltzg8A0ildVn2/gtpX1u6D3qKL3Ujl0W67r9h8Hq5dYeBbCaR/JlKCuIs= X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2019 13:52:36.4877 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a5c5b95e-7eca-4568-c2bf-08d6b1f24dda X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.57];Helo=[nwd2mta2.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR03MB558 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Michael Hennerich There never was a device called LTC3651, it always was just LT3651. This circumstance makes it pretty difficult to identify what this driver is meant to control. This patch is a minimal invasive attempt to fix this issue without affecting existing systems. Signed-off-by: Michael Hennerich --- .../devicetree/bindings/power/supply/ltc3651-charger.txt | 8 +++++--- drivers/power/supply/Kconfig | 6 +++--- drivers/power/supply/ltc3651-charger.c | 9 +++------ 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/power/supply/ltc3651-charger.txt b/Documentation/devicetree/bindings/power/supply/ltc3651-charger.txt index 71f2840..f012449 100644 --- a/Documentation/devicetree/bindings/power/supply/ltc3651-charger.txt +++ b/Documentation/devicetree/bindings/power/supply/ltc3651-charger.txt @@ -1,7 +1,9 @@ -ltc3651-charger +Analog Devices LT3651 Charger Power Supply bindings: ltc3651-charger Required properties: - - compatible: "lltc,ltc3651-charger" +- compatible: Should contain one of the following: + * "lltc,ltc3651-charger", + * "lltc,lt3651-charger" - lltc,acpr-gpios: Connect to ACPR output. See remark below. Optional properties: @@ -20,7 +22,7 @@ attributes to detect changes. Example: charger: battery-charger { - compatible = "lltc,ltc3651-charger"; + compatible = "lltc,lt3651-charger"; lltc,acpr-gpios = <&gpio0 68 GPIO_ACTIVE_LOW>; lltc,fault-gpios = <&gpio0 64 GPIO_ACTIVE_LOW>; lltc,chrg-gpios = <&gpio0 63 GPIO_ACTIVE_LOW>; diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig index e901b9879..6816a86 100644 --- a/drivers/power/supply/Kconfig +++ b/drivers/power/supply/Kconfig @@ -476,11 +476,11 @@ config CHARGER_MANAGER with help of suspend_again support. config CHARGER_LTC3651 - tristate "LTC3651 charger" + tristate "Analog Devices LT3651 charger" depends on GPIOLIB help - Say Y to include support for the LTC3651 battery charger which reports - its status via GPIO lines. + Say Y to include support for the Analog Devices (Linear Technology) + LT3651 battery charger which reports its status via GPIO lines. config CHARGER_MAX14577 tristate "Maxim MAX14577/77836 battery charger driver" diff --git a/drivers/power/supply/ltc3651-charger.c b/drivers/power/supply/ltc3651-charger.c index eea63ff..07ed537 100644 --- a/drivers/power/supply/ltc3651-charger.c +++ b/drivers/power/supply/ltc3651-charger.c @@ -1,11 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* + * Driver for Analog Devices (Linear Technology) LT3651 charger IC. * Copyright (C) 2017, Topic Embedded Products - * Driver for LTC3651 charger IC. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. */ #include @@ -190,6 +186,7 @@ static int ltc3651_charger_probe(struct platform_device *pdev) static const struct of_device_id ltc3651_charger_match[] = { { .compatible = "lltc,ltc3651-charger" }, + { .compatible = "lltc,lt3651-charger" }, { } }; MODULE_DEVICE_TABLE(of, ltc3651_charger_match);