From patchwork Sat Mar 11 17:35:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170909 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0797FC61DA4 for ; Sat, 11 Mar 2023 17:36:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3C5AA10E197; Sat, 11 Mar 2023 17:36:04 +0000 (UTC) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by gabe.freedesktop.org (Postfix) with ESMTPS id D2FB210E197 for ; Sat, 11 Mar 2023 17:36:01 +0000 (UTC) Received: by mail-ed1-x52a.google.com with SMTP id r15so5857153edq.11 for ; Sat, 11 Mar 2023 09:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556160; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WcwlP/C06RxeVDsbVu82hAXbDbgdlPaZxHqgbrTaPqw=; b=Su/aYm+ZTxhdwla05jEevJ0f632jx/+dGtBRD+0Pb43ZuIKPJgecesaOqP19HlE0n/ CbD0VYIm2qkEIWdET2R0C/xF3qwUigy4t+LM3J9Jcm3Mamykk8l0bFVkt043+mfvwm/8 PbGjjwzlL6ZxlRLjMh0WPeYcdqWUykD+A6aj8fknMYz/IDGqQpeln8x7O/oPgMAx4F1T +ZJdJM1o5Ae8Ub6LGp6v+Q1L7gvYk8bLwj9YOfqeVD67jFGhzj9l4f/ESzIn8vfbvYBM e5C/vfyD6YZi5a1rIgjKtrkrhpVZJeUA2CmRyH1v8bEv60nj3Rc14DBVcxGxnQ//tDXV jKBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556160; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WcwlP/C06RxeVDsbVu82hAXbDbgdlPaZxHqgbrTaPqw=; b=n+WrRggxLM3UQMu3BqrxdItlizu5Po/xzufI0lu0TnSe8+0kVP0ozDvEWyGq8vV0Nb lZkIrZzp0ajUNO7J8DaKs4XOGKBMPv+DYUgmPvWLHoTiGjOokwDEUX3oR/RyfQT3aY77 G837dwxIO784pjo0LsEy+9VwWr9P4d+rPg0EVD6mZCT5OllOUjd26o9EFrKQXfVco2NL A3c7cAOJYg3fkV0X5n08V3dOKryt0o8mIhYvQxnsDoqMqwbXnjwuTOvy8NKzrCrgpPYC szKX61jFeNA6DHuPvZalmnQDnh4CcSbIS1VOfy/36pquPlVNT1B+PEDuaFpXns97azw8 d0pQ== X-Gm-Message-State: AO0yUKVzGRQ2mZW31HqpK1/SwUxb4IX+G+LHSA7YQlbYSxSebSANDfvb RDjEpKH38XZzeAEwLgnrthOZlg== X-Google-Smtp-Source: AK7set8m+DcbGrpKkaEu8cJcaWS/KDSEJAux+7j8RvWSGAfhO28fTqKPTee8W0ZBoQU26tCiqYNizA== X-Received: by 2002:a05:6402:31e8:b0:4fb:31f1:425 with SMTP id dy8-20020a05640231e800b004fb31f10425mr654075edb.33.1678556160364; Sat, 11 Mar 2023 09:36:00 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id o26-20020a1709061b1a00b009240a577b38sm245423ejg.14.2023.03.11.09.35.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:36:00 -0800 (PST) From: Krzysztof Kozlowski To: Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] backlight: lp855x: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 18:35:55 +0100 Message-Id: <20230311173556.263086-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Krzysztof Kozlowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/video/backlight/lp855x_bl.c:551:34: error: ‘lp855x_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson --- drivers/video/backlight/lp855x_bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/lp855x_bl.c b/drivers/video/backlight/lp855x_bl.c index 81012bf29baf..a57c9ef3b1cc 100644 --- a/drivers/video/backlight/lp855x_bl.c +++ b/drivers/video/backlight/lp855x_bl.c @@ -548,7 +548,7 @@ static void lp855x_remove(struct i2c_client *cl) sysfs_remove_group(&lp->dev->kobj, &lp855x_attr_group); } -static const struct of_device_id lp855x_dt_ids[] = { +static const struct of_device_id lp855x_dt_ids[] __maybe_unused = { { .compatible = "ti,lp8550", }, { .compatible = "ti,lp8551", }, { .compatible = "ti,lp8552", }, From patchwork Sat Mar 11 17:35:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170910 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 60659C74A4B for ; Sat, 11 Mar 2023 17:36:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BA69D10E29C; Sat, 11 Mar 2023 17:36:06 +0000 (UTC) Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by gabe.freedesktop.org (Postfix) with ESMTPS id BD90910E197 for ; Sat, 11 Mar 2023 17:36:02 +0000 (UTC) Received: by mail-ed1-x52e.google.com with SMTP id cn21so2853588edb.0 for ; Sat, 11 Mar 2023 09:36:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556161; 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=4SdFkCAcFYqQLXuQPZJF9uuUIlYRjbN5Fnk2tHbR0J8=; b=nca4nmWy7yHFMhDtV3c+p/Kye64HqiZQuzZIXlLLzjri/qA6FSvaLyfCYSlKh3GCuk BLGlxDwoiuDwDLgIXFYWi4QQOT6fsTUT9h9nJnarMgheiTCTlQDvKfNwDYC8eLfrWmDF BbXu7JEEuwW1m3w6tk2DCDKSnImHgssZDSECgzHDGyGmQjU/xlGj0nS2Ojer3sFAX35+ B0YtRFHG7Zov4jJRXj8MU308l+XRztSSV3+zHCxQPqqk0t5FHG5bQJFpTO2gPGRM0PkU npOPbc0IAAKbsFEv+XxwK+Lj/azJqSz+uk77N/qyeHmyhQdnn1qndci4TL7dWrKirSYQ BiwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556161; 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=4SdFkCAcFYqQLXuQPZJF9uuUIlYRjbN5Fnk2tHbR0J8=; b=LKweG05T6FvsEBV5EVULuA8N4JfvVLADR+pHWfaSxCFxyUTvM+jiSFcrU6nBsF9ZWD ZISk3E/sAUcVfNJffWaKaPFV4EYQGZoCst8HcXQO7MXJl9feJrA8zkxcQ7Hag6Ri0CLY ji87quIBPNUb0Tqe+4j+UZAI1f8o0e4QqspONcT/hLaq6kiGuDylEze/JCxFUBnqC6MG WiUrJrj7Jb+ueM+8fvcwyihqRxawHNaZ6OeIVA6u3MIgLV17707RbOCGxCqSg1+5bjFW FWA9KA8wDX++Paqw49bS44ZXlhGlE6gTfQtZcnLyAjIOrfGtcf0RUQTubQEy+rxFj9gc 2vRQ== X-Gm-Message-State: AO0yUKXaYvkILRJkJdduJb43BUG4nvKnf786r4tLVNfN+BBGctGmZ+CA cveP4ZmCS3OAn1Mz78MpwIYt2w== X-Google-Smtp-Source: AK7set86+WXFwkkusoMVVsyn8I7uNiBN0R7q/0pN4r39ds7FYdWwNeye1wjlNOjhatU/gopp2H8RKw== X-Received: by 2002:a17:907:3e91:b0:8b2:b711:5e62 with SMTP id hs17-20020a1709073e9100b008b2b7115e62mr34928132ejc.52.1678556161242; Sat, 11 Mar 2023 09:36:01 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id o26-20020a1709061b1a00b009240a577b38sm245423ejg.14.2023.03.11.09.36.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:36:00 -0800 (PST) From: Krzysztof Kozlowski To: Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] backlight: arcxcnn_bl: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:35:56 +0100 Message-Id: <20230311173556.263086-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173556.263086-1-krzysztof.kozlowski@linaro.org> References: <20230311173556.263086-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Krzysztof Kozlowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The driver will match mostly by DT table (even thought there is regular ID table) so there is little benefit in of_match_ptr (this also allows ACPI matching via PRP0001, even though it might not be relevant here). drivers/video/backlight/arcxcnn_bl.c:378:34: error: ‘arcxcnn_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson --- drivers/video/backlight/arcxcnn_bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/arcxcnn_bl.c b/drivers/video/backlight/arcxcnn_bl.c index e610d7a1d13d..088bcca547dd 100644 --- a/drivers/video/backlight/arcxcnn_bl.c +++ b/drivers/video/backlight/arcxcnn_bl.c @@ -390,7 +390,7 @@ MODULE_DEVICE_TABLE(i2c, arcxcnn_ids); static struct i2c_driver arcxcnn_driver = { .driver = { .name = "arcxcnn_bl", - .of_match_table = of_match_ptr(arcxcnn_dt_ids), + .of_match_table = arcxcnn_dt_ids, }, .probe_new = arcxcnn_probe, .remove = arcxcnn_remove,