From patchwork Sun Jan 18 18:01:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Chary X-Patchwork-Id: 3038 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 n0IICtks022633 for ; Sun, 18 Jan 2009 10:12:55 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934036AbZARSRO (ORCPT ); Sun, 18 Jan 2009 13:17:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1765092AbZARSRO (ORCPT ); Sun, 18 Jan 2009 13:17:14 -0500 Received: from iksaif.net ([88.191.73.63]:58970 "EHLO iksaif.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757442AbZARSRN (ORCPT ); Sun, 18 Jan 2009 13:17:13 -0500 X-Greylist: delayed 485 seconds by postgrey-1.27 at vger.kernel.org; Sun, 18 Jan 2009 13:17:13 EST Received: from localhost.localdomain (cxr69-11-88-180-139-205.fbx.proxad.net [88.180.139.205]) (Authenticated sender: corentincj@iksaif.net) by iksaif.net (Postfix) with ESMTPA id 3166E1858002; Sun, 18 Jan 2009 19:11:25 +0100 (CET) From: Corentin Chary To: linux-acpi@vger.kernel.org Cc: lenb@kernel.org, Corentin Chary Subject: [PATCH] asus-laptop: use generic netlink interface Date: Sun, 18 Jan 2009 19:01:52 +0100 Message-Id: <1232301715-20292-4-git-send-email-corentincj@iksaif.net> X-Mailer: git-send-email 1.6.0.6 In-Reply-To: <1232301715-20292-3-git-send-email-corentincj@iksaif.net> References: <1232301715-20292-1-git-send-email-corentincj@iksaif.net> <1232301715-20292-2-git-send-email-corentincj@iksaif.net> <1232301715-20292-3-git-send-email-corentincj@iksaif.net> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org To be prepared for /proc/acpi/event removal we export events also through generic netlink interface. Signed-off-by: Corentin Chary --- drivers/platform/x86/asus-laptop.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 8fb8b35..1b7a28c 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c @@ -738,8 +738,9 @@ static void asus_hotk_notify(acpi_handle handle, u32 event, void *data) lcd_blank(FB_BLANK_POWERDOWN); } - acpi_bus_generate_proc_event(hotk->device, event, - hotk->event_count[event % 128]++); + acpi_bus_generate_netlink_event(hotk->device->pnp.device_class, + dev_name(&hotk->device->dev), event, + hotk->event_count[event % 128]++); return; }