Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4678096ybv; Tue, 11 Feb 2020 01:08:32 -0800 (PST) X-Google-Smtp-Source: APXvYqxORB78goQ2uDIV3Wkukr7DpH6XQym2Hu6/VHon0yng6m98cROeQfDXb+fQYuDWh0bUN1ms X-Received: by 2002:a9d:67c9:: with SMTP id c9mr4475204otn.67.1581412112145; Tue, 11 Feb 2020 01:08:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581412112; cv=none; d=google.com; s=arc-20160816; b=0kdouwZdAE8rY9+ieQ0mbKVfGfmvOwg8Pj8M+4f3YuEHkwD3UqU8C/sf1T3yOPqgc/ 7sOL140hvwVkdUE+8u0IlCwv9wEdOkTEo+upk+kIu8aiQMPgaDih6ZWE36Jt1AxBbgWN 1JrWSVMl6+1Y19mJ8cJKqB9ZB4t2Mi6S9Vg8BmYjp1+vVoL+FOxR0LfNl1JFF0sB19+s +r6OMVM1bkmPgv/hD195dyMZtPGkn3VwThe+29WneGIEp7wcwUzySylES/KrM4xVP7fE cPKj69uh25rwBoxqq4R1EsH+scXYYfDgGQQ/rN7VweWdJYvj/jZ1eBYeK12tUkLe/M1r bPLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Kufx2b86GhMKj2/5JRyQcdEYbiaBCWhtsF2yQMRwNJQ=; b=Ko220vTqcyNoO/OSs1qjO7WYh3bMF4W+Oud5T/Xn2a0BTpVDHJrsuPvHLh6+QNUvlY y6B7V5K0ASufzT741k4/IhRUImDbr1AxDxgpq49QQwskQR6I8qLXnmKjrPZGlpdT1zup JfMpAdbE2yMFHDWaI21qYdGRXc9kYkpNcKKGWuOH7dpMifwpKUNA8RqIH39lv/CsHHH/ 131wQKlMxTRVrMZkUdWr4ApGYdTRAYQwVJQs+511g5omcryGxI3OoE74NPUjFUwXiRua JJr1H0EsqvaA5YOAeIRHKnf1d5/Rpy7g0ro7799D+9xDHpOUuoB3hq/OsYIb0+pYKIRQ KbYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ISuJhI95; 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 l83si1434022oih.58.2020.02.11.01.08.19; Tue, 11 Feb 2020 01:08:32 -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=ISuJhI95; 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 S1727932AbgBKIvT (ORCPT + 99 others); Tue, 11 Feb 2020 03:51:19 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:32977 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727704AbgBKIvS (ORCPT ); Tue, 11 Feb 2020 03:51:18 -0500 Received: by mail-pj1-f68.google.com with SMTP id m7so740416pjs.0; Tue, 11 Feb 2020 00:51:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Kufx2b86GhMKj2/5JRyQcdEYbiaBCWhtsF2yQMRwNJQ=; b=ISuJhI952AfdvwSTac/cDpCFI/qpWyE+qRpiSDF8F50DWcKhHDp1sy9MaKVp5uCazY X+dq/WQzT6gQb8eY4hqESnGG8bQrEA1Z/uAsVIu74NKdz4BqCgyafsBt1FwQ7SnXKn4E cMeVKyLRS2zHdq1GrScxcz1Mj1RFR6B5dMTw1Prlw9oSRowV1Jz4e/xXImXryTkY93Iq gerJNXOyJbQJKtbFdKhPg+ja353+WtT+9i3Vy2guNKNxOK3qHdFH0M6MpSBOYAJn4oUR ohq/1x02oA6Zc+9vZdlhdBY4MmlEBnMuoNpD3sFWXrcEtKMojx69JZ+BXlMO/eX+L0ev 5INQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Kufx2b86GhMKj2/5JRyQcdEYbiaBCWhtsF2yQMRwNJQ=; b=S4SjxqWcneIB2zxyZ2Rz+ZHIMmq7JxRQuIthb00rfhmUUiV7y/2KkYMel6NiZZjoia UvLhuHMtVPKk6zZ9TCqmcoQ1YNmaBskFvrX7S8nVRAH4mQRzNLD6Rc5laaqEZXCX0qG8 xNhJjw0pjsQR1rMzVDHfIc4Wb5UxSs4USfRw/ZbiDw0D1Jv+qkvOKOSSrJKzA0KcCN/N NPCX90bb20Tn8gUmUPbRX6f5QfYCpMAYapR2/354/2BgE4KPZqEd64FWxsOEfpdLplJ7 elA5WXvVLtFyHwV8SqTBnxJDBv3rzE2Lk3BusVGIiBsBJY/5HMxpwLIuzR4cv0ykNOEV pmQQ== X-Gm-Message-State: APjAAAUlkX/+5aDoRO+lCCwr0wpsPiqWV8s+iWjD6WKfn5OaTGxbGQ6P H88V/4L1m1qXHHTst403hwA= X-Received: by 2002:a17:90a:c697:: with SMTP id n23mr2334308pjt.37.1581411076548; Tue, 11 Feb 2020 00:51:16 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id g19sm3179271pfh.134.2020.02.11.00.51.14 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Feb 2020 00:51:15 -0800 (PST) From: Baolin Wang To: sre@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, baolin.wang7@gmail.com, zhang.lyra@gmail.com, orsonzhai@gmail.com Subject: [PATCH] power: supply: Allow charger manager can be built as a module Date: Tue, 11 Feb 2020 16:50:22 +0800 Message-Id: <2d0854b00d7f85e988aff4f8186e8ac5d8a9aff2.1581410798.git.baolin.wang7@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow charger manager can be built as a module like other charger drivers. 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