From mboxrd@z Thu Jan 1 00:00:00 1970 From: Todd Brandt Subject: [PATCH RESEND v3 0/3] X-Power AXP288 PMIC Fuel Gauge Driver Date: Mon, 2 Feb 2015 15:41:40 -0800 Message-ID: Return-path: Sender: linux-iio-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, dbaryshkov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, david.woodhouse-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org Cc: linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, todd.e.brandt-VuQAYsv1563Yd54FQh9/CA@public.gmane.org, todd.e.brandt-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org, jacob.jun.pan-VuQAYsv1563Yd54FQh9/CA@public.gmane.org, sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org, lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org, jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org List-Id: linux-pm@vger.kernel.org New power_supply driver at driver/power which interfaces with the axp20x mfd driver as a cell. Provides battery info, monitors for changes, and generates alerts on temperature and capacity issues Todd Brandt (3): mfd/axp20x: change battery cell name to fuel gauge mfd/axp20x: add support for fuel gauge cell X-Power AXP288 PMIC Fuel Gauge Driver v1: 01/07/14 v2: 01/22/14 - replaced the const in axp20x_acpi_match declaration - reformatted the commit text - added IIO as driver dependency - moved debug info to debugfs in file fuelgauge - added HEALTH_COLD value to health calculation - added better cleanup to remove call cancelling any delayed work calls unregistration of the power_supply v3: 01/28/14 - moved debugs create and init config regs after error case - freed the virqs in the remove function - remove .owner field as it is populated automatically drivers/mfd/axp20x.c | 8 +- drivers/power/Kconfig | 9 + drivers/power/Makefile | 1 + drivers/power/axp288_fuel_gauge.c | 1151 +++++++++++++++++++++++++++++++++++++ include/linux/mfd/axp20x.h | 43 +- 5 files changed, 1206 insertions(+), 6 deletions(-) create mode 100644 drivers/power/axp288_fuel_gauge.c -- 1.9.1