From patchwork Fri Apr 1 21:02:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hesse X-Patchwork-Id: 8727761 Return-Path: X-Original-To: patchwork-platform-driver-x86@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DA0CF9F36E for ; Fri, 1 Apr 2016 21:11:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 17C97203A1 for ; Fri, 1 Apr 2016 21:11:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 932322010F for ; Fri, 1 Apr 2016 21:11:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753998AbcDAVLo (ORCPT ); Fri, 1 Apr 2016 17:11:44 -0400 Received: from mx.mylinuxtime.de ([148.251.109.235]:47764 "EHLO mx.mylinuxtime.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752970AbcDAVLn (ORCPT ); Fri, 1 Apr 2016 17:11:43 -0400 X-Greylist: delayed 515 seconds by postgrey-1.27 at vger.kernel.org; Fri, 01 Apr 2016 17:11:43 EDT Received: from leda.eworm.de (unknown [10.10.1.2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.mylinuxtime.de (Postfix) with ESMTPSA id 52C4721997; Fri, 1 Apr 2016 23:03:05 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mx.mylinuxtime.de 52C4721997 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eworm.de; s=mail; t=1459544585; bh=kuAaCTOgLqv0PBz35YMUrJRL4U/4dvgz1hwxWSyesWg=; h=From:To:Cc:Subject:Date; b=27mQkjqWpuSEPHfT0tcAk1pWZiigjNRjMbx+A9z2UJiNEKnLcsLaEj1wsvjRRaA02 w8cMjbdL5iIny8V6s4BF8s2gOhwUFsFQXzfL1tWNilRUvf1F+WOqgzTTBN37rKANnW tgyJvz7ezjn+R3LV9uvLbHCuRiRWxp51NsnOcWWw= Received: by leda.eworm.de (Postfix, from userid 1000) id 86F4F102249; Fri, 1 Apr 2016 23:02:57 +0200 (CEST) From: Christian Hesse To: platform-driver-x86@vger.kernel.org Cc: Darren Hart , Ike Panhc , Michael Gisbers , Christian Hesse Subject: [PATCH 1/1] ideapad-laptop: Handle Yoga in tablet mode Date: Fri, 1 Apr 2016 23:02:49 +0200 Message-Id: <1459544569-29865-1-git-send-email-list@eworm.de> X-Mailer: git-send-email 2.8.0 Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 From: Christian Hesse When Lenovo Yoga 700 is flipped to tablet mode it emmits event 10. Let's send touchpad key codes so software can disable touchpad. Signed-off-by: Christian Hesse Signed-off-by: Michael Gisbers --- drivers/platform/x86/ideapad-laptop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index be3bc2f..1d49db1 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c @@ -809,6 +809,7 @@ static void ideapad_acpi_notify(acpi_handle handle, u32 event, void *data) case 6: ideapad_input_report(priv, vpc_bit); break; + case 10: case 5: ideapad_sync_touchpad_state(priv); break;