Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4721801pxu; Wed, 21 Oct 2020 03:47:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHzqe2HEUqox9ev0Ob/frW1y2oNnSMyvBQ8AQm9q36aEifvwVXtCrnqIOKpVZW7pRI9QgT X-Received: by 2002:a17:907:20d9:: with SMTP id qq25mr2762863ejb.149.1603277257515; Wed, 21 Oct 2020 03:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603277257; cv=none; d=google.com; s=arc-20160816; b=eeNi0PT7M445HYTLpkdfvTIbc7nRQuVrWLl/OGa+muQlrd+EQ5gX0o2WUnOz0DGSJn kmk/bnioCRH0T+HDHm3vu9WjS3eF0K8xCcIz/HGt2W5RD72ZQkSag03SU8hDfems7xgR Ur7B6Z9FAtzZVvRWubm3MUDanJ1s50PH2JVj+3DO9homoyeOq6AURl0lfhQdbBXt/Rjf GchNWx90HkQS2oqYxsT0dU3udraBMaMqymTtOj6Ye5zTxUbE1WNBHwUqf7bVsfuQuw6S V36bz+3YuDbZnSiPhq7tRCmWlkT4l7kbtvUpSlbZgbuhV/cu8q6UDZCW9aqgnmVjaQhn 336g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=ReitwSbZ/fEJxIhaeb16wIu56zn2EFv30T8ySvSFH0w=; b=hEDrefaGen/yQK+/EesaEXQmB/i2x6dE6VTHWScDg20oTQMSBOwVbm4z5MfLW82EEj xIe/qd9VCtDp8iZrqxoxfX04sw8D90+0cNRha5s2/4eq5tl315smw5VFB7ZRR9SWfkKM PN4tnNkzFSayjSWYBrAGvjNx19ngf3AGSHJbtqyv414ZFx/jsGHJYdyih9j2keuyw7eU ej5ScAKcAzl1FY6fsYAq0gRTHf+pkV4UbY38Jfri+rezumYOAKuPWFiZWFkhDtbhgHnb HWDukUwsTVG2bbzPn9cFlW9LgkS6YDCJ1byo+rSDtw+DsKKY43oFGfDjmZFCAW+GKFo2 TFXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cavoj.net header.s=email header.b=jfhnUco5; dkim=pass header.i=@cavoj.net header.s=email header.b=jfhnUco5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cavoj.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a14si1159478edn.216.2020.10.21.03.47.15; Wed, 21 Oct 2020 03:47:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cavoj.net header.s=email header.b=jfhnUco5; dkim=pass header.i=@cavoj.net header.s=email header.b=jfhnUco5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cavoj.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439055AbgJTW3R (ORCPT + 99 others); Tue, 20 Oct 2020 18:29:17 -0400 Received: from lithium.sammserver.com ([168.119.122.30]:33762 "EHLO lithium.sammserver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392454AbgJTW3Q (ORCPT ); Tue, 20 Oct 2020 18:29:16 -0400 Received: from mail.sammserver.com (sammserver.wg [10.32.40.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by lithium.sammserver.com (Postfix) with ESMTPS id 54DDE312B5A9; Wed, 21 Oct 2020 00:29:15 +0200 (CEST) Received: by mail.sammserver.com (Postfix, from userid 5011) id 07EB61131C4F; Wed, 21 Oct 2020 00:29:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cavoj.net; s=email; t=1603232955; bh=ReitwSbZ/fEJxIhaeb16wIu56zn2EFv30T8ySvSFH0w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jfhnUco5osuGZc32XXNMB5dvr+eQJWCyJPhgYcDi0GhEpkJDMy9sq8Bq3ZSMIs6/N Np5j+X/juEh7J8xYH3fT7uQ2OmWN+3I0SGn6gsF6p7g9pTFX480G5oSvpO5L+unmfp clbyixbMjyufHyeSUqHah6qfzhuY6LopQ1hzsSe4= Received: from fastboi.localdomain (fastboi.wg [10.32.40.5]) by mail.sammserver.com (Postfix) with ESMTP id DBF521131C4C; Wed, 21 Oct 2020 00:29:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cavoj.net; s=email; t=1603232955; bh=ReitwSbZ/fEJxIhaeb16wIu56zn2EFv30T8ySvSFH0w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jfhnUco5osuGZc32XXNMB5dvr+eQJWCyJPhgYcDi0GhEpkJDMy9sq8Bq3ZSMIs6/N Np5j+X/juEh7J8xYH3fT7uQ2OmWN+3I0SGn6gsF6p7g9pTFX480G5oSvpO5L+unmfp clbyixbMjyufHyeSUqHah6qfzhuY6LopQ1hzsSe4= Received: by fastboi.localdomain (Postfix, from userid 1000) id C3CB714209CF; Wed, 21 Oct 2020 00:29:14 +0200 (CEST) Date: Wed, 21 Oct 2020 00:29:14 +0200 From: Samuel =?utf-8?B?xIxhdm9q?= To: Hans de Goede Cc: Mark Gross , Corentin Chary , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] platform/x86: asus-wmi: Add support for SW_TABLET_MODE on UX360 Message-ID: <20201020222914.6k2pkxiirzbefjml@fastboi.localdomain> References: <20201020220944.1075530-1-samuel@cavoj.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201020220944.1075530-1-samuel@cavoj.net> X-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on sammserver.tu Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, naturally I notice this right after I send the patch, but my whitespace is wrong. Time to set a pre-commit hook up. I guess that means a v4, unless you would fix it on your end? It's just a single line. Sorry about all the noise, Sam On 21.10.2020 00:09, Samuel Čavoj wrote: > @@ -375,6 +376,20 @@ static int asus_wmi_input_init(struct asus_wmi *asus) > } > } > > + if (asus->driver->quirks->use_lid_flip_devid) { > + result = asus_wmi_get_devstate_simple(asus, ASUS_WMI_DEVID_LID_FLIP); > + if (result < 0) Right ^here. > + asus->driver->quirks->use_lid_flip_devid = 0; > + if (result >= 0) { > + input_set_capability(asus->inputdev, EV_SW, SW_TABLET_MODE); > + input_report_switch(asus->inputdev, SW_TABLET_MODE, result); > + } else if (result == -ENODEV) { > + pr_err("This device has lid_flip quirk but got ENODEV checking it. This is a bug."); > + } else { > + pr_err("Error checking for lid-flip: %d\n", result); > + } > + }