From patchwork Mon Apr 5 18:15:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12184245 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA794C43470 for ; Tue, 6 Apr 2021 06:26:03 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 5FF47610CC for ; Tue, 6 Apr 2021 06:26:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5FF47610CC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 610716E5D4; Tue, 6 Apr 2021 06:25:37 +0000 (UTC) Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by gabe.freedesktop.org (Postfix) with ESMTPS id 45ECA89D44 for ; Mon, 5 Apr 2021 18:15:07 +0000 (UTC) Received: from mail-wr1-f70.google.com ([209.85.221.70]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lTTkf-0004np-FW for dri-devel@lists.freedesktop.org; Mon, 05 Apr 2021 18:15:05 +0000 Received: by mail-wr1-f70.google.com with SMTP id e9so8674728wrg.6 for ; Mon, 05 Apr 2021 11:15:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7CUk/iAsFieG2zHKAIGqtut7zOrbBM0NXHpnT3k1Fp8=; b=R4LiXlsfbC7tRNHnzhyd854BKuqxAd6hWHmzG8bHGyVVa8WmlyarmxzB9Bpxc7eLig A/bfCPu+xoyhLrDGPYgtXizJQL5kXBBWSGCObdlGe8dMKJXx2v5C/ttOJHodQaJY8TE0 1cuSsL9FwSWMocRwUb30EwlbbdYKr51XnXpLsa+iSuIaiwnI1XDflHtAS4sW6gfK5Enn mh0wGEgfTWLfaos7twXwoKiL/2kqbwqJ01d5YxYkpGg+1qNEq0/iuO/ynzIBOVCqBMMr ZjBhexuQdTilwtZcg5wjFhoEQo8DCoh/iP8ROe5fzWCH975cWKSzysx8/pkOu7B80fW4 YFlQ== X-Gm-Message-State: AOAM53123RCHIdR73j4Ea++4i9ejGIlc0n4psvckCPO7/gbqbrByur4v 4PhsJfJKlLyovJLv/f+suxEkMQA98KxNWXHP8kOTeLuz7tEKgaXNn5OXZEk8Q43hzQacBb7Zldd 5t7oJyVcfEW932Xz0rSv6ayhcnK9pCpIbt906sCxyP/vmGQ== X-Received: by 2002:a5d:54c4:: with SMTP id x4mr29937623wrv.329.1617646505271; Mon, 05 Apr 2021 11:15:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcySNNIL5pxzASqJNBtYeVlH+A1mUzX3rBltnRY1vbBomaDpZYGOwBWGOL7Dx+fWCYM1AvYw== X-Received: by 2002:a5d:54c4:: with SMTP id x4mr29937613wrv.329.1617646505165; Mon, 05 Apr 2021 11:15:05 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-192-147.adslplus.ch. [188.155.192.147]) by smtp.gmail.com with ESMTPSA id 64sm336695wmz.7.2021.04.05.11.15.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Apr 2021 11:15:04 -0700 (PDT) From: Krzysztof Kozlowski To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/panel: ld9040: reference spi_device_id table Date: Mon, 5 Apr 2021 20:15:02 +0200 Message-Id: <20210405181502.52291-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 06 Apr 2021 06:25:33 +0000 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 , Marek Szyprowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Reference the spi_device_id table to silence W=1 warning: drivers/gpu/drm/panel/panel-samsung-ld9040.c:377:35: warning: ‘ld9040_ids’ defined but not used [-Wunused-const-variable=] This also would be needed for matching the driver if booted without CONFIG_OF (although it's not necessarily real case). Signed-off-by: Krzysztof Kozlowski --- drivers/gpu/drm/panel/panel-samsung-ld9040.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/panel/panel-samsung-ld9040.c b/drivers/gpu/drm/panel/panel-samsung-ld9040.c index f484147fc3a6..c4b388850a13 100644 --- a/drivers/gpu/drm/panel/panel-samsung-ld9040.c +++ b/drivers/gpu/drm/panel/panel-samsung-ld9040.c @@ -383,6 +383,7 @@ MODULE_DEVICE_TABLE(spi, ld9040_ids); static struct spi_driver ld9040_driver = { .probe = ld9040_probe, .remove = ld9040_remove, + .id_table = ld9040_ids, .driver = { .name = "panel-samsung-ld9040", .of_match_table = ld9040_of_match,