Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6703976rwi; Mon, 24 Oct 2022 05:11:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7iqI9TKwiXvmehxxjZe+scAtYxj4ovtnU3iJBNgJLnvkcbbVX8dnZBL5nhGNdDTQ7QgSKt X-Received: by 2002:a17:907:6d18:b0:78e:259d:c391 with SMTP id sa24-20020a1709076d1800b0078e259dc391mr27394046ejc.615.1666613478548; Mon, 24 Oct 2022 05:11:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666613478; cv=none; d=google.com; s=arc-20160816; b=qCLv8EmqJyBce2WZL/KdyOXIMKiHqibJSTYFB9Y1mUcXkzjkw7+IxgkKhIhgWrJ4cQ y9iFm7gw+CwlIE/SUr5q0HTAnuh4yDh9Or+XAvFY7vJ/nWNkNCpZ0pP+Uk8IgTtpgPot mprxkpxpwWQ89ZyNRayAXqE42VuFG1oD2elH3fUuhO+glBAUdRHuUowHIfqNrsAsVucM URnDcuFgil21aKtKdhtYQoAPIFbcqhv69luZ6htB2/Y/IHcfS9LRRW4ETgCDlr4gSQ9q MWzSxDri1+ayGyuUJXqee7sehh31YcX6v8Fs8WeD6KPQT7wdC3drlRSZ9M3d/Yt2Lr/b BgeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=aTWnIAAWrGsxFWyDKsfKu5xKbLpsLEHl3kQR801HKCo=; b=aBhRf95yxN8gyYAyHOAihQajnyzZydamtl/dgiOexd1KCbLQQ9Y2MRsG0FK5ESqA0P EkNp/wTEEuVLWkY8DoilqX1nBIFohEUS8IsySr5bMl0iM8kDzzYJGG1RRGCWuTLKGSHI X4+F7Xtmn+ooRamAhRkhEfCuLpOrpV24kpMJHPsQ2F0pMijz3aqgpBPSAnr2kqNLLwR4 LqGDfkf4Pazc9mhsHpTX8dCAju9XX13ZNbChTK308t0fCaDU2u2U4JAgxZxAY4Z3X41B BRQqWuy5r4ue2I+arAwfhktgXxLhDsrJqXw+1Y1MIR8uUYOXeb70ef3CR0/lL2oRp2Hj v7Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b="MRe/lYU3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh40-20020a1709076ea800b007413b206b16si27834195ejc.843.2022.10.24.05.10.52; Mon, 24 Oct 2022 05:11:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b="MRe/lYU3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231371AbiJXLkV (ORCPT + 99 others); Mon, 24 Oct 2022 07:40:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231350AbiJXLjE (ORCPT ); Mon, 24 Oct 2022 07:39:04 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C6A36E2CB for ; Mon, 24 Oct 2022 04:38:25 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id h185so8428069pgc.10 for ; Mon, 24 Oct 2022 04:38:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aTWnIAAWrGsxFWyDKsfKu5xKbLpsLEHl3kQR801HKCo=; b=MRe/lYU3QcRg+eNbrdoMjeONSL07r0OuDkWzCVk6tpzA20LxxB9dtVNP6GAZVtqzIg /Ydi6DIu3Wy5fZXEZmacOcz+NqXiSg1SXC5+xE40BzARxzxxK4lzIbVbKWJmk00nhUWL J95wLECXE4yV76gl9zFLYhn0sUtCfGQd7MZ3fPt+5gVvmN0pleQRDgrqZg3vefZrijSa Yr0OxSWw7RuG0IesV0KfRF12UlNsEctSBC+ObKy3MmlA9Ekq0p3IRfhEG3FwtLPaqAOb tgPmTvcjcO2SHlUmacRidezoVVwplJ41JEut0A62tZuMt+eaVkdbww0tkfz+m4Yo8zhg FlhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aTWnIAAWrGsxFWyDKsfKu5xKbLpsLEHl3kQR801HKCo=; b=AsRefnyFR3LnyocMWMdDYvv/NCz3tC+0bRfBED+9LQSgjnScrHL7zZS64qtlTv4C1d f5+sD+FRpS7CcpCgv+fv6xCbWnJ20BIK4wc1oi+uYyaE+Y+3FerTCfJBaLm7c76qpyCo DDAFvpZjewV8GuB0VoLYlCBw9tnnFLQhx/JOl30x3cg41O6/3AlArxvXpNuKtEsZ+OuU zd0pIChuPEREgP/8ZqjdvUoALXhHeLUaKMGDR05Tg32jK3PhVEcCAjagv2D/hbIAUFLa rmAQEf/bomOSE5Yefg3Y1wFm/pthK3uXGc3GLCuqJwwm0KjmzS3UDSKbgX9qDrSXET0i slTA== X-Gm-Message-State: ACrzQf3TsR+iUvaWxqDWhJwFsW2s5B/2yGxuZKdGh3ijjfLGBYJvPrpd bFIWfC32+1eQm1w8M2cKgu24MA== X-Received: by 2002:a63:64d:0:b0:46b:158f:102e with SMTP id 74-20020a63064d000000b0046b158f102emr28740541pgg.150.1666611408492; Mon, 24 Oct 2022 04:36:48 -0700 (PDT) Received: from fedora.flets-east.jp ([2400:4050:c360:8200:8ae8:3c4:c0da:7419]) by smtp.gmail.com with ESMTPSA id b8-20020a170903228800b001830ed575c3sm19475075plh.117.2022.10.24.04.36.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 04:36:47 -0700 (PDT) From: Akihiko Odaki Cc: David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Jonathan Corbet , "Rafael J. Wysocki" , Len Brown , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , "Lee, Chun-Yi" , Hans de Goede , Mark Gross , Corentin Chary , Cezary Jackiewicz , Matthew Garrett , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Jonathan Woithe , Ike Panhc , Daniel Dadap , Kenneth Chan , Mattia Dongili , Henrique de Moraes Holschuh , Azael Avalos , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller , Robert Moore , dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, intel-gfx@lists.freedesktop.org, platform-driver-x86@vger.kernel.org, acpi4asus-user@lists.sourceforge.net, ibm-acpi-devel@lists.sourceforge.net, linux-fbdev@vger.kernel.org, devel@acpica.org, Akihiko Odaki Subject: [PATCH 08/22] platform/x86: eeepc-laptop: Use acpi_video_get_backlight_types() Date: Mon, 24 Oct 2022 20:34:59 +0900 Message-Id: <20221024113513.5205-9-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221024113513.5205-1-akihiko.odaki@daynix.com> References: <20221024113513.5205-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org acpi_video_get_backlight_type() is now deprecated. Signed-off-by: Akihiko Odaki --- drivers/platform/x86/eeepc-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c index a388a28b6f2a..91dea49f7c3d 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/drivers/platform/x86/eeepc-laptop.c @@ -1400,7 +1400,7 @@ static int eeepc_acpi_add(struct acpi_device *device) if (result) goto fail_platform; - if (acpi_video_get_backlight_type() == acpi_backlight_vendor) { + if ((acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) { result = eeepc_backlight_init(eeepc); if (result) goto fail_backlight; -- 2.37.3