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 9328AC43334 for ; Wed, 8 Jun 2022 15:15:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244301AbiFHPPB (ORCPT ); Wed, 8 Jun 2022 11:15:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244341AbiFHPOa (ORCPT ); Wed, 8 Jun 2022 11:14:30 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6492612F36B for ; Wed, 8 Jun 2022 08:07:10 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id h5so28815601wrb.0 for ; Wed, 08 Jun 2022 08:07:10 -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=jR5ucCRD1ctjVwCehTL8/SWrd6GdcH9zFkM7ubCwloY=; b=r9pPqM8xpt4wuylBRff/ucXvli/IL8AT6e5ujPXj7W0sxQShSi4vSzFvBPtleE/arT 52P2pGJSMAtvjESFWTEk4YQzjof7UsrgznsJZmD5q8OvLGZHMpf/dv84svtTinZcmLIF eU86GhRZ/CuwERlgwHQiEV/5jtye/wcpYdF9kLH0JLg2mflhmrwEaj86qxueENn3Ae2Z uuQR+j8GxrWQnEjTiho8wBGVU6DVTd4aiRfKTM6mBh3/ZZXM2fs6faBcw0he9XDEQZkz LbmO6pqkZk5PwmTJX2ANZesI6XiSbfuLnrNu3klX79FWXV2/Mhx5V3LvMC65yrAux3Xk Wjpw== 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=jR5ucCRD1ctjVwCehTL8/SWrd6GdcH9zFkM7ubCwloY=; b=WPu9InFeTIjdBiLheZGGyBza96YXUSIaet1KiPJ+HErWdtSjY8KUWv6IsXj+oVy7ba te9DNkz26yMN/6O4BqNiB84AvJc4/GyRC52pTw1HYpeZaIWjTI8ismXh0Y34OYqCX5mk cpMkgdfszm8rn2GU4//gJmB3yKqjXUicL8x5l5RKod1MEP3vJ+Ov5qL9a3YdSsyGrcDC B/RvwQXBqovkOpLocYMBYJyJXc3Y5VZSEaiBbXCKdm9Te8TeRiidhT9fTAzVSTZoFg2t uR57Rg5vMVs61A9bCBz/dGeDpzvYqhBizCU5+gq26+6jnPnxer1l+Cdk7YttOgwz+xye HqYA== X-Gm-Message-State: AOAM533IwOh063fQjt0KCh2McI9daGR+VpEQm6QTjIuSXYT/BmbMKrUf alAC7qQCBt+sj8AsYUqRZ8qlUg== X-Google-Smtp-Source: ABdhPJzrABVEahqOXkCw0qRSD5dcC11oiJcuHfkbfmFnxlBzYOua2IJdBPwEY/KsP8iILy5/KZwxQg== X-Received: by 2002:a5d:624e:0:b0:210:a42:f29d with SMTP id m14-20020a5d624e000000b002100a42f29dmr33145631wrv.615.1654700828851; Wed, 08 Jun 2022 08:07:08 -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 x4-20020adfffc4000000b0021018642ff8sm21453128wrs.76.2022.06.08.08.07.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 08:07:08 -0700 (PDT) Date: Wed, 8 Jun 2022 16:07:06 +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, ibm-acpi-devel@lists.sourceforge.net Subject: Re: [PATCH 4/4] platform/x86: thinkpad_acpi: Use backlight helper Message-ID: <20220608150706.fjuaalab5kzapc47@maple.lan> References: <20220607184635.1127913-1-steve@sk2.org> <20220607184635.1127913-5-steve@sk2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220607184635.1127913-5-steve@sk2.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 07, 2022 at 08:46:35PM +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: Henrique de Moraes Holschuh > Cc: Hans de Goede > Cc: Mark Gross > Cc: ibm-acpi-devel@lists.sourceforge.net > Cc: platform-driver-x86@vger.kernel.org Reviewed-by: Daniel Thompson Daniel.