From patchwork Mon Aug 12 22:55:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Lippers-Hollmann X-Patchwork-Id: 2843312 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DE0AF9F239 for ; Mon, 12 Aug 2013 22:55:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 10719203A8 for ; Mon, 12 Aug 2013 22:55:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3441520381 for ; Mon, 12 Aug 2013 22:55:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755769Ab3HLWzc (ORCPT ); Mon, 12 Aug 2013 18:55:32 -0400 Received: from mo-p05-ob.rzone.de ([81.169.146.181]:27792 "EHLO mo-p05-ob.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755722Ab3HLWzb (ORCPT ); Mon, 12 Aug 2013 18:55:31 -0400 X-RZG-AUTH: :OmsBZ2C7d7IBoB6EHwegNiNxh/xpjMmBYR0YjlTttojRtSoTy+fSJcJG X-RZG-CLASS-ID: mo05 Received: from mir (p4FCB0A38.dip0.t-ipconnect.de [79.203.10.56]) by smtp.strato.de (RZmta 31.38 DYNA|AUTH) with ESMTPA id z02fedp7CMku2X ; Tue, 13 Aug 2013 00:55:30 +0200 (CEST) Received: from mir.localnet (mir.lan [192.168.10.1]) by mir (Postfix) with ESMTP id 26E7C819; Tue, 13 Aug 2013 00:55:30 +0200 (CEST) From: "Stefan Lippers-Hollmann" To: Dmitry Torokhov Subject: [PATCH 3/3] wistron_btns: add MODULE_DEVICE_TABLE Date: Tue, 13 Aug 2013 00:55:22 +0200 User-Agent: KMail/1.13.7 (Linux/3.10-5.slh.2-aptosid-686; KDE/4.8.4; i686; ; ) Cc: Miloslav Trmac , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <201308130050.52800.s.L-H@gmx.de> In-Reply-To: <201308130050.52800.s.L-H@gmx.de> MIME-Version: 1.0 Message-Id: <201308130055.29423.s.L-H@gmx.de> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-9.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This allows the wistron_btns module to be autoloaded on boot, its functionality is required to support the hardware rfkill switches on most of the supported notebooks, in order to unblock the hard blocked rfkill state for wireless and bluetooth devices. Tested on a Medion MD96500: alias: dmi*:svn*MEDIONPC*:pn*WIM2040*: Signed-off-by: Stefan Lippers-Hollmann --- This patch may be considered RFC, while it is certainly the right thing to do, some of the DMI matches might be a bit wide, e.g.: dmi*:svn*FUJITSUSIEMENS*:pn*AMILOD*: dmi*:svn*FUJITSUSIEMENS*:pn*AmiloD*: dmi*:svn*FUJITSUSIEMENS*:pn*AMILOM*: all others are very targetted - and I haven't noticed any issues by forcing wistron_btns on system not requiring it so far. drivers/input/misc/wistron_btns.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/input/misc/wistron_btns.c +++ b/drivers/input/misc/wistron_btns.c @@ -971,6 +971,7 @@ static const struct dmi_system_id __init }, { NULL, } }; +MODULE_DEVICE_TABLE(dmi, dmi_ids); /* Copy the good keymap, as the original ones are free'd */ static int __init copy_keymap(void)