Re: [PATCH v2] thinkpad_acpi: Support the battery wear control

2017-12-04 Thread Ognjen Galic
On Mon, Dec 04, 2017 at 03:53:32PM +0100, Rafael J. Wysocki wrote: > Not really. > > This is generic code, so no thinkpad_acpi-specific stuff in this file, please, > even under #ifdefs. > I have some ideas, and I want your confirmation if that would be acceptable. Can I do this: Expose a new

[PATCH v2] thinkad_acpi: Support the battery wear control

2017-12-03 Thread Ognjen Galic
pose the interface unless DMI says that the machine is a Lenovo ThinkPad. This was done so that distributions that distribute thinkpad_acpi don't expose the API on non-ThinkPad laptops. v2: Forgot to signoff, fixed that Signed-off-by: Ognjen Galic --- Documentation/laptops/thinkpad-a

[PATCH] thinkad_acpi: Support the battery wear control

2017-12-03 Thread Ognjen Galic
Add support for the ACPI batteries on newer thinkpad models (>Sandy Bridge) that support the setting of start and stop thresholds. The actual interface to the driver is a extension for the existing ACPI battery driver. This was done so that users can write transparently to the interface of the ACP