Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp7220124ybf; Fri, 6 Mar 2020 12:48:40 -0800 (PST) X-Google-Smtp-Source: ADFU+vvV5Trjce1YvwrC43UGAgX/OdNBtNTIRcL1DZOqAVzF88xgqKfE1Av7cVzgtASF1JLRx1l6 X-Received: by 2002:a05:6808:8d0:: with SMTP id k16mr3974278oij.68.1583527720295; Fri, 06 Mar 2020 12:48:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583527720; cv=none; d=google.com; s=arc-20160816; b=KtEzyIrpWC6RKLxaiOkcJ1/4dFaQ81B4U3uUJBrJAGxvpXrN2imZ8cNiRJDPILsDTi 3nJpntGqI6lI85lmSZH8wRjLvCNKRfqfbmEunOb9dGYxwiMF3+E8Nnzb0kiDZNgMY8S2 KBJtAqDkDEk9AypSjklmsMXHsSs4GpDpuND7KBE3CrwWjhrUvkch2GU/JxwvTuSCDqJA A7zz3jW+bCR2OPsB3iC8IRSnQcbosPkwVa6vLUFl71bYI+KOCrvm6srfMk01R1PzVNlp Bl3w3o96ZCFDh/lb39duPak1ZOwvoya4cTAQwbPa+Qf//xW9SjwHtADevTIMZH/A3sU8 /k2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=A1doMwiVDbwSx9vdmZeyysc7/M7QWYKjDzhKj7P5VE4=; b=Vs01D7ZdjRWFtqOVfUKXrh7DDqsn0+vX/dpyqzIndin/XX4XJJQfXQaKQSYGqn05F2 rCti7GMzJ2lQX4RYVwaRMO3npqNkq+kAsLhclf37tFcY4Rg9rWzpCv0ivmVThodj+Ozr IZP+ZMhZ4NULfvtws9vwR4UVsuAwpMYJGojKqN3JufjV1bz8auJRknAGO4v+XUFe1z4c 1zNiz3V172bFVjioHT/uB/2A6yfcTimw9dP93nN0nDuDhHqgWRm5Rawk0Y1xCjdCzRc2 Cf3hS4UMDVEmREthqoXidU4l2lEZu9KBJViN0tBkeB2D4xWQMuncgucY0reS22jzbx2x 8lMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a4PHKn1u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si1885854oth.182.2020.03.06.12.48.27; Fri, 06 Mar 2020 12:48:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a4PHKn1u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726194AbgCFUrR (ORCPT + 99 others); Fri, 6 Mar 2020 15:47:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:39382 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbgCFUrR (ORCPT ); Fri, 6 Mar 2020 15:47:17 -0500 Received: from earth.universe (unknown [185.62.205.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5FFA2206CC; Fri, 6 Mar 2020 20:47:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583527635; bh=CGUlFpKeC/Aq+Hjpqcsgc5CwpgRqbAKS3+GmNaXWkpA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a4PHKn1ug9riJMNVQh3J0n20OlbM8gdPvxLheZFxIEwgeXRM4dGJLx5SeTnIaKsEy WEo5tXuUECHqdXN3afFYK+Iq7ZE+/mtIimwi0C/paXx2vqjGll3zre+E0SEAimJZ76 5ybXJ2wLmgandLMcCPlEksy74FdzFUxfXaPEL2yM= Received: by earth.universe (Postfix, from userid 1000) id 0EB533C0C83; Fri, 6 Mar 2020 21:47:12 +0100 (CET) Date: Fri, 6 Mar 2020 21:47:12 +0100 From: Sebastian Reichel To: Baolin Wang Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, saravanak@google.com, kernel-team@android.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] power: supply: Allow charger manager can be built as a module Message-ID: <20200306204712.dgomi52jzyakylky@earth.universe> References: <5e098be25c70e07c37e743f84a901f6f756090e0.1583461755.git.baolin.wang7@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gsujtxoazwncud73" Content-Disposition: inline In-Reply-To: <5e098be25c70e07c37e743f84a901f6f756090e0.1583461755.git.baolin.wang7@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --gsujtxoazwncud73 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri, Mar 06, 2020 at 10:34:10AM +0800, Baolin Wang wrote: > Allow charger manager can be built as a module like other charger > drivers. >=20 > Signed-off-by: Baolin Wang > --- Thanks, queued. I do not like this driver, but its the best we have at the moment. -- Sebastian > Changes from v1: > - Use IS_ENABLED() instead. > --- > drivers/power/supply/Kconfig | 2 +- > include/linux/power/charger-manager.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig > index 9a5591a..195bc04 100644 > --- a/drivers/power/supply/Kconfig > +++ b/drivers/power/supply/Kconfig > @@ -480,7 +480,7 @@ config CHARGER_GPIO > called gpio-charger. > =20 > config CHARGER_MANAGER > - bool "Battery charger manager for multiple chargers" > + tristate "Battery charger manager for multiple chargers" > depends on REGULATOR > select EXTCON > help > diff --git a/include/linux/power/charger-manager.h b/include/linux/power/= charger-manager.h > index ad19e68..ae94dce 100644 > --- a/include/linux/power/charger-manager.h > +++ b/include/linux/power/charger-manager.h > @@ -248,7 +248,7 @@ struct charger_manager { > u64 charging_end_time; > }; > =20 > -#ifdef CONFIG_CHARGER_MANAGER > +#if IS_ENABLED(CONFIG_CHARGER_MANAGER) > extern void cm_notify_event(struct power_supply *psy, > enum cm_event_types type, char *msg); > #else > --=20 > 1.9.1 >=20 --gsujtxoazwncud73 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAl5itswACgkQ2O7X88g7 +popsBAAjRAF+IgaH0fiR6Fw3tg3XSc9b4LzYAhiRyTbjBVFouvCA3k583qlngSb 78cFhEZzbtnWTyGmXQ31Vbs1YWVCQm7vKIWRHabkzYXRnWMvuE+ZPvm5tf03kpZs 7SsI4tp6+eb5cq0XIYx4taqV1RWzrRiOoSzQdM+vpHldIQJnZEqy2oeNHTuoTPxe OeF12rW5G3sw4E8pzUDhv7i/DpyPCC2ox6V5EItWjmlsvDhHVeV8Sb71QSAKSpAe r2fcZbt9h9InMMzfSyG/u06HY6WmHzdXHvyxry+nFyVpKgT6bYbZVVHV8SrHVZNt EcOW5JSstz4d9G52v9d7+VEFjR60Nad7KnvmH7elhQtRWhBkpSGIseG0SkZVfLnc TAfs+cpWBqaj0FveKoB+NAEY/ojhvgUGZCqi7IBxGFofiucTlsWz3qt0BPP0P3Fo goWP2J1GuQ8XnuVRFumNW39fAoY9J9m74C687xBRVKp1rof3QOmgCC5SutagkXKs wwE3kNSlkv/d4SH/CRxlzYwK175Xk/Bh2NcJRzwYwub0+UsqAVq4FbXgAIhAskk7 0LfBYMaD17HzOWx0cD7sg9rBvldbF4zREFHtOXqKOb0FN5mRtsl133hCek21qPBT /R7I0/ty1C+5KHoqWIva4Qr66OoYU+cwgy4uHmuHIe/sGINndZk= =A++/ -----END PGP SIGNATURE----- --gsujtxoazwncud73--