Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1284409ybf; Thu, 27 Feb 2020 08:06:56 -0800 (PST) X-Google-Smtp-Source: APXvYqz9+0TVmwKBaCQxj0rj7QtMVBP9aYEzjqhe+uHYl0Aetsb6XDN4tI9UwqRmdQ5o+pAEf7HG X-Received: by 2002:a05:6808:611:: with SMTP id y17mr3831852oih.146.1582819616668; Thu, 27 Feb 2020 08:06:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582819616; cv=none; d=google.com; s=arc-20160816; b=Eyx9hP+ywW8zE+NrQ/4GRFtnGwOBHFyFk7QB8894tcYbkEZyD+ainspFjPmo+E2SdU jE0FsRmePFac7d/Go61hxnigaAUSRcZd6OWGDwYhHJrGhL0EnEMyDbipNlz1YdBI3PSo bBSJwSEHjbybqhneIiXzEZ1IPcn+S9E3oOs2XBcBWJikkWDOyEFVZw5rpoKeZ6zaZ/9a tI9ysIZmjVFdpyvalNYG504/zavLveFZNk4awXQdyBUFF9pXTEXg7ZlY24QCLTQQYCjf sHEVTLP31XZwysZE8DnVVRXBpMq9I6MvxdRyINjh9KG2xup+OPLnUViBldX/h74B8a2U phHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8aeAAGL1lN/mti66y5xOWWYla0SoqdV+XcmEKiiyHrQ=; b=gYS0qthvpnkUKp0mFJfp8kFQlAfIjEmox+7CJhEzIHr8g+k5khNPw9OnqptzCy+grB wqfuD/mJyFWDoAF5sKgcuRHPkKEuXk7CH8lichup5QBvWXVDzvPIBYIGWfizQsHtY8MG BsjUoW6Q6YE/1tlNWBWA9+ZR/zbYnBgWxqLSrmRzxobyQIp4A8Cz7BQ//79L6m38YO0W XYaM3LYI9nLPitASPztTF3mLpuLtuBcoBWluhVDyAMPd0zEACIBN86zneWpvYhUgm6hn vMPbfowaqmDT+JTpjXxXKbhrVc0rkuh7uPVHz4uqzqfo0IkQCBSYr5GO8Udm5ZM/MXwW EzIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k1OJ5Kog; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si39230oik.171.2020.02.27.08.06.42; Thu, 27 Feb 2020 08:06:56 -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=@gmail.com header.s=20161025 header.b=k1OJ5Kog; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729431AbgB0QGd (ORCPT + 99 others); Thu, 27 Feb 2020 11:06:33 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40562 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729134AbgB0QGc (ORCPT ); Thu, 27 Feb 2020 11:06:32 -0500 Received: by mail-lj1-f195.google.com with SMTP id 143so3938043ljj.7; Thu, 27 Feb 2020 08:06:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8aeAAGL1lN/mti66y5xOWWYla0SoqdV+XcmEKiiyHrQ=; b=k1OJ5Kog27zuKwJHPC5y6tnPBYX5HF2ktRokz4/EhYbZyLw8rjnfQ32BqqC5E2eX/c ATNlvZEpSrTeED5xQ0ecEYwJjjquqZEjEVDk9079Z6Fk0M8yicFeN+EtyqD970kUdowa pLx4AzfK1XJG0bmG/VcP5AewgU2sIAR0+9+ypa0s13535oMKnbG1FDAh5h1IhnZvnPB5 aCmp3G91iD6KEMxaUFKIIgsju7Kc+Fuko82IBNEUtoXzKwgZRTyEjiE6/0fGX0Ct+H4D ulkjg+KbA0Aj/ZcyiM6hz+9kxz0phQ+PHZLLFW1k7oswnzb113MuCi/t5Pd/C70DpEy+ M6Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8aeAAGL1lN/mti66y5xOWWYla0SoqdV+XcmEKiiyHrQ=; b=Jk5UpLPjzNvvs5G3C+NMgUZGmBdAD4QkBcyTay6tFCLLdF2xcCmRaRrSxAFEE5oMe9 ob52IueJ2AJOApb5bGdXEwXnEOxLQiO632LoHWEFkuuZBQ2LOGhb8+BcJk4+ICpHd0yd 1B39lLC/4tUk4K3MV7ZUC4Zj8qchFuWEd48JJmSqNHMkZYafySYgY1skfJrXK8Syt2je ug88pGUyFnUM+VkEX9LIO9nbuEDzn3q70WAjpVWAus1dbg0S9Y33YPzxSCWc02BvNMkk S2k6ctBmBgyr8t62dULYGyGb0cOvzosoCYUUcbclH/6Uz7D0KD4AAanWYzJP7hsnuFZ2 PRDA== X-Gm-Message-State: ANhLgQ32kzWftzhibuyWCHoCmI7nHxbDULMKYZBURo4zzGasFubv4kCL l1DOAV4WWg3BEMH54LerxavoDakfQHIWKcip14o= X-Received: by 2002:a2e:8e91:: with SMTP id z17mr124172ljk.13.1582819588888; Thu, 27 Feb 2020 08:06:28 -0800 (PST) MIME-Version: 1.0 References: <2d0854b00d7f85e988aff4f8186e8ac5d8a9aff2.1581410798.git.baolin.wang7@gmail.com> In-Reply-To: <2d0854b00d7f85e988aff4f8186e8ac5d8a9aff2.1581410798.git.baolin.wang7@gmail.com> From: Orson Zhai Date: Fri, 28 Feb 2020 00:06:17 +0800 Message-ID: Subject: Re: [PATCH] power: supply: Allow charger manager can be built as a module To: Baolin Wang Cc: sre@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Lyra Zhang , kernel-team@android.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sebastian and other guys here, On Tue, Feb 11, 2020 at 4:51 PM Baolin Wang wrote: > > Allow charger manager can be built as a module like other charger > drivers. > What do you think about this patch? We want to set charger-manager as module in our project for new Android devices. -Orson > Signed-off-by: Baolin Wang > --- > drivers/power/supply/Kconfig | 2 +- > include/linux/power/charger-manager.h | 7 +------ > 2 files changed, 2 insertions(+), 7 deletions(-) > > 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. > > 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..40493b2 100644 > --- a/include/linux/power/charger-manager.h > +++ b/include/linux/power/charger-manager.h > @@ -248,11 +248,6 @@ struct charger_manager { > u64 charging_end_time; > }; > > -#ifdef CONFIG_CHARGER_MANAGER > extern void cm_notify_event(struct power_supply *psy, > - enum cm_event_types type, char *msg); > -#else > -static inline void cm_notify_event(struct power_supply *psy, > - enum cm_event_types type, char *msg) { } > -#endif > + enum cm_event_types type, char *msg); > #endif /* _CHARGER_MANAGER_H */ > -- > 1.7.9.5 >