From patchwork Tue Jan 20 15:17:49 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Chary X-Patchwork-Id: 3310 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 n0KFDM07027971 for ; Tue, 20 Jan 2009 07:13:32 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757181AbZATPSF (ORCPT ); Tue, 20 Jan 2009 10:18:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757674AbZATPSE (ORCPT ); Tue, 20 Jan 2009 10:18:04 -0500 Received: from iksaif.net ([88.191.73.63]:59557 "EHLO iksaif.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757181AbZATPR6 (ORCPT ); Tue, 20 Jan 2009 10:17:58 -0500 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 08622C90061; Tue, 20 Jan 2009 16:20:16 +0100 (CET) From: Corentin Chary To: lenb@kernel.org Cc: linux-acpi@vger.kernel.org, Corentin Chary Subject: [PATCH 10/10] eeepc-laptop: use netlink interface Date: Tue, 20 Jan 2009 16:17:49 +0100 Message-Id: <1232464669-29619-11-git-send-email-corentincj@iksaif.net> X-Mailer: git-send-email 1.6.1 In-Reply-To: <1232464669-29619-1-git-send-email-corentincj@iksaif.net> References: <1232464669-29619-1-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/eeepc-laptop.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c index 66655d2..4348d99 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/drivers/platform/x86/eeepc-laptop.c @@ -560,8 +560,9 @@ static void eeepc_hotk_notify(acpi_handle handle, u32 event, void *data) return; if (event >= NOTIFY_BRN_MIN && event <= NOTIFY_BRN_MAX) notify_brn(); - acpi_bus_generate_proc_event(ehotk->device, event, - ehotk->event_count[event % 128]++); + acpi_bus_generate_netlink_event(ehotk->device->pnp.device_class, + dev_name(&ehotk->device->dev), event, + ehotk->event_count[event % 128]++); if (ehotk->inputdev) { key = eepc_get_entry_by_scancode(event); if (key) {