Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754892Ab0FXRWd (ORCPT ); Thu, 24 Jun 2010 13:22:33 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:41885 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754752Ab0FXRWa (ORCPT ); Thu, 24 Jun 2010 13:22:30 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:cc:content-type; b=QxOIA1L0eR2jsf91btRuQ00kpxXQR3BRjkOctW9guRvR4541Z+rEkdXG+ERl1s4DT0 KZmi/XJ2+hS4w3hlIjxVHYJ2/DW2XacCXuO/gm7BJszOfMCeETCqogh7usb91/8TJd26 zSY4B4QCdtqr7TEQYgitVW4yBP5TpR9Ed679A= MIME-Version: 1.0 From: Islam Amer Date: Thu, 24 Jun 2010 20:14:41 +0300 Message-ID: Subject: [ patch ] dell-wmi : Dell studio eject key To: Matthew Garrett Cc: linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, akpm@linux-foundation.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 863 Lines: 25 Fixes pressing the eject key on Dell Studio 1555 does not work and produces message : dell-wmi: Unknown key 0 pressed Signed-off-by: Islam Amer --- --- linux-sidux-2.6-2.6.34/drivers/platform/x86/dell-wmi.c.orig 2010-06-03 00:02:17.418824168 +0300 +++ linux-sidux-2.6-2.6.34/drivers/platform/x86/dell-wmi.c 2010-06-03 00:01:40.641833249 +0300 @@ -221,7 +221,7 @@ static void dell_wmi_notify(u32 value, v return; } - if (dell_new_hk_type) + if (dell_new_hk_type || buffer_entry[1] == 0x0) reported_key = (int)buffer_entry[2]; else reported_key = (int)buffer_entry[1] & 0xffff; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/