From patchwork Fri Dec 11 11:05:55 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Jenkins X-Patchwork-Id: 66587 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBBB61qs010790 for ; Fri, 11 Dec 2009 11:06:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756945AbZLKLFx (ORCPT ); Fri, 11 Dec 2009 06:05:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760688AbZLKLFx (ORCPT ); Fri, 11 Dec 2009 06:05:53 -0500 Received: from mail-fx0-f221.google.com ([209.85.220.221]:52022 "EHLO mail-fx0-f221.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756945AbZLKLFw (ORCPT ); Fri, 11 Dec 2009 06:05:52 -0500 Received: by fxm21 with SMTP id 21so852972fxm.1 for ; Fri, 11 Dec 2009 03:05:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=csAT4TtO3FV6iHHWm2Ra7zqMAkWOZHaSFpYsevOq+0k=; b=c37fv721HjtCOBkKPqov3om2zFgZcJfZRSn3TT3ULsY4yzUexRiMS5rPuLGNGUZty6 dCzJJK8a28rA55hHvMn+UfXAvBcXeHe/jabTa510SyLDRRmb7IygfmBb3DImE/Z5hX/h c3s6s6mlROLc+AbtaOzen5KtKFZEpDtLu3d7I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=ulQhQHmxnk03VhJ0Rp8dlWcNp2g7TQKyLI3LrZesIJ5ieU5R6sOkl481lznJBtKQXA EeRo5O0T3MMiWJHxtVCGJ79pC7XbVL0LXekzidv+55SauudqDGil2NPPSESU4iCMe6Me ABwps7OfJvy0MwsmN5lcKWJY1pNtScz6wu4/Y= Received: by 10.223.164.75 with SMTP id d11mr1313245fay.17.1260529558355; Fri, 11 Dec 2009 03:05:58 -0800 (PST) Received: from ?192.168.0.4? ([86.53.68.233]) by mx.google.com with ESMTPS id 14sm647690fxm.7.2009.12.11.03.05.56 (version=SSLv3 cipher=RC4-MD5); Fri, 11 Dec 2009 03:05:57 -0800 (PST) Message-ID: <4B222793.3020902@tuffmail.co.uk> Date: Fri, 11 Dec 2009 11:05:55 +0000 From: Alan Jenkins User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Len Brown CC: linux acpi Subject: [PATCH 2/2] ACPI: battery drivers should call power_supply_changed() References: <4B22274A.1000003@tuffmail.co.uk> In-Reply-To: <4B22274A.1000003@tuffmail.co.uk> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index ed4aeab..ec3138c 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c @@ -833,7 +833,7 @@ static void acpi_battery_notify(struct acpi_device *device, u32 event) #ifdef CONFIG_ACPI_SYSFS_POWER /* acpi_batter_update could remove power_supply object */ if (battery->bat.dev) - kobject_uevent(&battery->bat.dev->kobj, KOBJ_CHANGE); + power_supply_changed(&battery->bat); #endif }