Re: [PATCH 1/4] thinkpad_acpi: Add support for controlling charge thresholds

2013-12-30 Thread Julian Andres Klode
On Mon, Dec 30, 2013 at 08:40:45PM -0200, Henrique de Moraes Holschuh wrote: > On Mon, 30 Dec 2013, Henrique de Moraes Holschuh wrote: > > On Mon, 30 Dec 2013, Julian Andres Klode wrote: > > > On Mon, Nov 11, 2013 at 02:56:30PM +0100, Julian Andres Klode wrote: > > > > Add support for battery charg

Re: [PATCH 1/4] thinkpad_acpi: Add support for controlling charge thresholds

2013-12-30 Thread Henrique de Moraes Holschuh
On Mon, 30 Dec 2013, Henrique de Moraes Holschuh wrote: > On Mon, 30 Dec 2013, Julian Andres Klode wrote: > > On Mon, Nov 11, 2013 at 02:56:30PM +0100, Julian Andres Klode wrote: > > > Add support for battery charge thresholds in new Sandy Bridge and Ivy > > > Bridge > > > ThinkPads. Based on the

Re: [PATCH 1/4] thinkpad_acpi: Add support for controlling charge thresholds

2013-12-30 Thread Henrique de Moraes Holschuh
On Mon, 30 Dec 2013, Julian Andres Klode wrote: > On Mon, Nov 11, 2013 at 02:56:30PM +0100, Julian Andres Klode wrote: > > Add support for battery charge thresholds in new Sandy Bridge and Ivy Bridge > > ThinkPads. Based on the unofficial documentation in tpacpi-bat. > > > > The threshold files su

Re: [PATCH 1/4] thinkpad_acpi: Add support for controlling charge thresholds

2013-12-30 Thread Julian Andres Klode
On Mon, Nov 11, 2013 at 02:56:30PM +0100, Julian Andres Klode wrote: > Add support for battery charge thresholds in new Sandy Bridge and Ivy Bridge > ThinkPads. Based on the unofficial documentation in tpacpi-bat. > > The threshold files support the values '0' for the controller's default, > and 1

Re: [PATCH 1/4] thinkpad_acpi: Add support for controlling charge thresholds

2013-11-13 Thread Julian Andres Klode
On Mon, Nov 11, 2013 at 02:56:30PM +0100, Julian Andres Klode wrote: > +static int __init battery_init(struct ibm_init_struct *iibm) > + for (i = 0; i < BATTERY_MAX_COUNT; i++) { > + int j = 0; > + if (!acpi_evalf(hkey_handle, &state, "BCTG", "qdd", i + 1)) > +