Re: [PATCH] ACPI SBS: Re-enable battery manager

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday, April 22, 2015 04:40:21 PM Chris Bainbridge wrote:
> Commit 9faf6136 introduced a regression disabling the SBS battery
> manager. The battery manager should be marked as present when
> acpi_manager_get_info returns 0.
> 
> Signed-off-by: Chris Bainbridge <chris.bainbridge@xxxxxxxxx>

Applied, thanks!

> ---
>  drivers/acpi/sbs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c
> index cd82762..01504c8 100644
> --- a/drivers/acpi/sbs.c
> +++ b/drivers/acpi/sbs.c
> @@ -684,7 +684,7 @@ static int acpi_sbs_add(struct acpi_device *device)
>  	if (!sbs_manager_broken) {
>  		result = acpi_manager_get_info(sbs);
>  		if (!result) {
> -			sbs->manager_present = 0;
> +			sbs->manager_present = 1;
>  			for (id = 0; id < MAX_SBS_BAT; ++id)
>  				if ((sbs->batteries_supported & (1 << id)))
>  					acpi_battery_add(sbs, id);
> 

-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux