From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F3BBC83F10 for ; Wed, 30 Aug 2023 03:23:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238752AbjH3DXG (ORCPT ); Tue, 29 Aug 2023 23:23:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238899AbjH3DWt (ORCPT ); Tue, 29 Aug 2023 23:22:49 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 986071A1; Tue, 29 Aug 2023 20:22:46 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id A728E32003F4; Tue, 29 Aug 2023 23:22:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 29 Aug 2023 23:22:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ljones.dev; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm2; t=1693365765; x=1693452165; bh=o/VONQHUq9 xAiRo+AGRw830zSqwSj1iW1vkdoxTZSmc=; b=BDjeTPWkTAhZo1BtDcGPfnyy0y L0wyZtSWKuFg6Z5UlMFeZluZF3vXDi+nEkRw8TOTPU9ohniT+THfgznF0n3/njDz pLhYSz1LI7lizRzqmW04tEmpCaUlPEiRGpNGRVRYz7NrVunkD4PhHoMS3QU9c9AI vTOZPZUsDuDNM4vY4XfpJDELfPDoV/uBWCe8O4S0ryOaLZxJg84OWHAB9q48DyRK ajdC2TNGatatRe8xCvJm+6x1C9ur89pvF1P6MVugDPdYw6uIqW4x+aVM6Gb4NGM3 c/nERSeTjFO6Ho/e5sCOZgR7loV3ZXJjqbDMusT0rpEzQKEZMB0ULyActAIA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1693365765; x=1693452165; bh=o/VONQHUq9xAi Ro+AGRw830zSqwSj1iW1vkdoxTZSmc=; b=vbpeWuFFterzKqRBEXKe1qKjUq7Ec xb2dF0EmQZn4h0B8KPnZKo17SzATOjd04Fa5gDwkNjQ1WELDh1gcOHld/dvA3k9u uMmaQxXhhpGiai/Nr2uyYvLVkxnxpwgN9/xtZq443HKE537A3+4daGxAXj0ZrvRU OiXQCbGNJC9dlekncTwRY/JMCZ7qInGdropcwx67EpWdCo1aCO2yXr3aYr/JgiSl 14dGcHk46ACtHWOeflxl44IUEeqbrDCEJ/aJF2Ox4Jh/QirFltmwapiE5x4cQs0z 5qKHUL62fG3bwAp1IvJK6p6a7X9m2FTOpZNp7yXq+aQTcOkp5if18dp9Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudefjedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpedfnfhukhgvucffrdculfhonhgvshdfuceolhhukhgvsehljhho nhgvshdruggvvheqnecuggftrfgrthhtvghrnheptdehkeeigeeggfelkeeufeefjeduvd ejveduvdehtdegveeftdeugeetvdeltdejnecuffhomhgrihhnpehkvghrnhgvlhdrohhr ghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehluh hkvgeslhhjohhnvghsrdguvghv X-ME-Proxy: Feedback-ID: i5ec1447f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 29 Aug 2023 23:22:42 -0400 (EDT) From: "Luke D. Jones" To: hdegoede@redhat.com Cc: corentin.chary@gmail.com, markgross@kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, "Luke D. Jones" Subject: [PATCH v6 0/1] platform/x86: asus-wmi: add support for ASUS screenpad Date: Wed, 30 Aug 2023 15:22:36 +1200 Message-ID: <20230830032237.42987-1-luke@ljones.dev> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org Add support for the WMI methods used to turn off and adjust the brightness of the secondary "screenpad" device found on some high-end ASUS laptops like the GX650P series and others. Changelog: - V6 - Move bulk of cover letter in to commit message - Add define for ASUS_SCREENPAD_BRIGHT_DEFAULT to be used on boot - Remove the use of max() in update_screenpad_bl_status() - Previous: https://lore.kernel.org/all/20230827232358.80512-1-luke@ljones.dev/ - V5 - Add minimum brightness to prevent screen from becoming invisible - Previous: https://lore.kernel.org/all/20230630041743.911303-1-luke@ljones.dev/ - V4 - Fix a null dereference that happened if the display was powered off and dev struct uninitialised yet - Previous: https://lore.kernel.org/all/20230620030033.55033-1-luke@ljones.dev/ - V3 - Refactor error handling in all functions - V2 - Complete refactor to use as a backlight device Luke D. Jones (1): platform/x86: asus-wmi: add support for ASUS screenpad drivers/platform/x86/asus-wmi.c | 133 +++++++++++++++++++++ drivers/platform/x86/asus-wmi.h | 1 + include/linux/platform_data/x86/asus-wmi.h | 4 + 3 files changed, 138 insertions(+) -- 2.41.0