UBUNTU: [Upstream] Input: Add keyboard quirk for Samsung R59P/R60P/R61P laptops
diff mbox

Message ID 1252488035-20118-1-git-send-email-keng-yu.lin@canonical.com
State Rejected
Headers show

Commit Message

Keng-Yü Lin Sept. 9, 2009, 9:20 a.m. UTC
OriginalAuthor: Moiseev Vladimir <cdb@linkycat.com>, Alexander Huhlaev <sancheolz@gmail.com>
BugLink: http://bugs.launchpad.net/bugs/253874

Add quirk for Samsung R59P/R60P/R61P to make the hotkeys work

Signed-off-by: Keng-Yu Lin <keng-yu.lin@canonical.com>
---
 drivers/input/keyboard/atkbd.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

Comments

Dmitry Torokhov Sept. 11, 2009, 5:13 a.m. UTC | #1
Hi Keng-Yu,

On Wed, Sep 09, 2009 at 05:20:35PM +0800, Keng-Yu Lin wrote:
> OriginalAuthor: Moiseev Vladimir <cdb@linkycat.com>, Alexander Huhlaev <sancheolz@gmail.com>
> BugLink: http://bugs.launchpad.net/bugs/253874
> 
> Add quirk for Samsung R59P/R60P/R61P to make the hotkeys work
> 

I will not be accepting any more patches adding the force-release quirks
to atkbd, in .32 there will be a way to adjust the bitmap through sysfs.

Thanks.

Patch
diff mbox

diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index 8066924..941f845 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -1615,6 +1615,15 @@  static struct dmi_system_id atkbd_dmi_quirk_table[] __initdata = {
 		.driver_data = atkbd_samsung_forced_release_keys,
 	},
 	{
+		.ident = "Samsung R59P/R60P/R61P",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "R59P/R60P/R61P"),
+		},
+		.callback = atkbd_setup_fixup,
+		.driver_data = atkbd_samsung_keymap_fixup,
+	},
+	{
 		.ident = "Fujitsu Amilo PA 1510",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),