Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2626772iof; Wed, 8 Jun 2022 08:45:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYh/731oU4xAd7ZE6QLR5ZGyE3PDUYHRYBiKQvNO17tOhJwPyi4MeYzf/JaBcCvWwrUT6N X-Received: by 2002:a17:902:8648:b0:167:86f2:aec3 with SMTP id y8-20020a170902864800b0016786f2aec3mr12865884plt.172.1654703125970; Wed, 08 Jun 2022 08:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654703125; cv=none; d=google.com; s=arc-20160816; b=slSDBLDCQFawq3zezaYt09d7yBa31vzJO2r3juWd9yDN0BCtPHkXDNNl9lbvizS/Ea aXgcO3hiEMjFdQwrFF9v3RIqulTSGZ91FhYXznAVAwxNeQlKLiV5/K3S6QENo4n/R30S cNyKuUZ3jWEhZMtduS7/4yKOIz3zTRuYADerepn8aZQXCRv7QXPUdQZcaBN9sbCFQ9wY 6hytSyGr7Ux1zjvzSCs4smDVQJI2kfMNEnoTffV83lbcFqbwepVbGli7WcgifXgzGnoR 3yc4++VZKgN04VQ/laRMowmeMXkI2zMQI6G5PetJr1CWVQUahVy14W+DVuEObUy+ZIV5 YcAg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LicVPwnZXPcISn2oDvw38YiCixBz7nAXnKboREn28oA=; b=YvN9eVnDGTSjObv9WcADOl5vvjq9fBAJ2r/vSlQsbZjntavJl6CWq9CYVvNP2CvJ0q W8r7OUJ7ytLjfC8TIcsPUwaSUO2xSi/hQl7RVvnY2KQWYtCHN8NrOiddixbt7EiwcBCe 2tKeIQYuxcGP5g5hsKq6aJ4hmJFYbIY/715RJtfpMjU0uIlr03xTYEuyfe4Ea9uqdLhh UhPlaaqd3c9y2GZfAEazq2J/69CscELxpreP8ZabLiL/DXiwyl19toJEQn4y3Hdilexp cd3Py6gf9/iCMqtzamxsMM4LbnuNJ0+eOBmHOIgKAGR91HV1DQq8o7dJOelN8UM9xuC2 83SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I7m34TKJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id oj2-20020a17090b4d8200b001e82e1ec1adsi22169528pjb.3.2022.06.08.08.45.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 08:45:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I7m34TKJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AC017EFF3F; Wed, 8 Jun 2022 08:16:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244247AbiFHPPO (ORCPT + 99 others); Wed, 8 Jun 2022 11:15:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243344AbiFHPOG (ORCPT ); Wed, 8 Jun 2022 11:14:06 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8358B8A062 for ; Wed, 8 Jun 2022 08:06:08 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id a10so8521221wmj.5 for ; Wed, 08 Jun 2022 08:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=LicVPwnZXPcISn2oDvw38YiCixBz7nAXnKboREn28oA=; b=I7m34TKJF2NVViuUzoxPzWj8ttUrTOIGWj2xW4XB3ylIEc1yrNODIeL1VOuF7iJ5FB ooSZMlyVOKvfizUy0PMH5xh9vogbKZuB49YOJjdSQDfttO8NEMmtoQ8n7LiLrTHTXvd3 CXO3FFGAoydiI2ZoekMfsawXP61UBvWer9WUSGvxRqA2AQuzIV35RT2L6pXiF2cGbR02 eSk1oTwEWrur/5qKg00r+NjTDMDsyqaqvepdhgUvTawtk3kanMGD6rp7nS6wdaiXLFAV Ti/P5WvQJBv1yjrPLxokBccZEq0b5GTRe96WFjkPNaoMLY1BpYfbFdzJQAIkzNQHe2mn 0E3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=LicVPwnZXPcISn2oDvw38YiCixBz7nAXnKboREn28oA=; b=di9YMNTCnSDLWFWQTJuzZuPCNwUvRN1p6dBDfDF9YmBYe9r2Uywcyo/flA4UriUSsU nSUAkiX9QmT+dD9vM1HE7nvWpEAhwAhnW1CcbKEkHJAJRAiNSIlyJgjoIb79jf6KrTbp 38fou46jBQV8eHYbkBCdEMqxXvKBSEmmNg1yPmibpmcJi7lJCjAOhxOk15vR+Kbl3TYp OqihoTMx7O4Nq2dilT9WQAWqz4uyUn8EhM6sFHEVRCUFa47fOJFCYUYwjqra7hthz+u7 pjuEd8RYz3s5oIXGR9KgiKHOi+hK+WC7mQeiG4XKcBdUOcbOkTCEDoPrhqvX2wKnE1m2 YAAg== X-Gm-Message-State: AOAM530UBTJPM0StFnTXPzg36Kkiui9VzVmegEvae5exIwNzu3EsAEeJ EfKvJ15gAjIZGV+qK0x9hC0qgw== X-Received: by 2002:a05:600c:590:b0:39c:5cd4:8623 with SMTP id o16-20020a05600c059000b0039c5cd48623mr7718911wmd.45.1654700766860; Wed, 08 Jun 2022 08:06:06 -0700 (PDT) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id m3-20020a05600c3b0300b003942a244f2fsm29352020wms.8.2022.06.08.08.06.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 08:06:06 -0700 (PDT) Date: Wed, 8 Jun 2022 16:06:04 +0100 From: Daniel Thompson To: Stephen Kitt Cc: "Lee, Chun-Yi" , Hans de Goede , Mark Gross , Cezary Jackiewicz , Henrique de Moraes Holschuh , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] platform/x86: acer-wmi: Use backlight helper Message-ID: <20220608150604.l7act7qvtbshnpux@maple.lan> References: <20220607184635.1127913-1-steve@sk2.org> <20220607184635.1127913-2-steve@sk2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220607184635.1127913-2-steve@sk2.org> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 07, 2022 at 08:46:32PM +0200, Stephen Kitt wrote: > Instead of retrieving the backlight brightness in struct > backlight_properties manually, and then checking whether the backlight > should be on at all, use backlight_get_brightness() which does all > this and insulates this from future changes. > > Signed-off-by: Stephen Kitt > Cc: "Lee, Chun-Yi" > Cc: Hans de Goede > Cc: Mark Gross > Cc: platform-driver-x86@vger.kernel.org Reviewed-by: Daniel Thompson Daniel.