From patchwork Fri Nov 13 13:49:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11903451 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=-12.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 A198DC61DD8 for ; Fri, 13 Nov 2020 13:50:27 +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 6040922201 for ; Fri, 13 Nov 2020 13:50:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oU+bZDcI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6040922201 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org 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 A8DB26E524; Fri, 13 Nov 2020 13:50:16 +0000 (UTC) Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5819D6E4DD for ; Fri, 13 Nov 2020 13:50:05 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id 33so9981092wrl.7 for ; Fri, 13 Nov 2020 05:50:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NO2flJnZQ5gKgn/ih0D6aTqpwf9ViRniG5BiRkSE7jU=; b=oU+bZDcIA8AQ53jLjMhsbcTjoc0o9aqwixUMDFaPxx4SjacHt/w7oe9W1HMKSdIsn9 6MbabSjAFbSm0k1Wtzvrq0NdT42aTWaBzzmUWCU8zrAC1ar1JcV5agJQhKKqmsvQRDx8 DugB2mjm1THeElsZsw+uY85zNMeJ8YXM1g5rjMPx7fYOia71z/cOlFmrj0P/AASK1cLd a19gm/PUefiBML3NgcSMj3reICam5oEhlLKz5NZeKUjHwCdh3UqBZfXHS+7mwb1CQBMp 083hgZs8utmuWHk8W0+RbnRiirUW1LsWFcExyMHgs8HKN+uangYIThSsaPlgGG/FncvU Wb1A== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=NO2flJnZQ5gKgn/ih0D6aTqpwf9ViRniG5BiRkSE7jU=; b=QUIMW9VxubnE3QMuRRWY2TylT5B3aqJKRZO1u1Mz6qKwWoiSCbjjxWvFC0kHG9jH/k gO/yp+C1D4ySazlWQdA+INKM2RydLcwMIpAKKPhQh4jVMXXnySIS76WnlQzsjwUtgk5h FNc7HasP7OUf5+jbsAwyJUPDOxXiRfigYxVvYym4kaa00Qi+X2J2O6EO0hRdCK4dx8+w NspAksNR6tydquvoQdGQDUtXJHrNK30g7Kh+mq+BKyDQRmS39cCOxbTvE02eUj2z8o8c NR2J5ql4lqTxevIM2IRbBrr1t5IPyqQgd8rMRWvBWByPNE/RtymISp5+fovyA7RIdMiv /yMQ== X-Gm-Message-State: AOAM532HuVZl0+IjLGhYaT5Hy90zbvduMw+MSyzYPAgAs2p8qjVtMUPu IEwHvUgRvdla572qq6mXo8DusQ== X-Google-Smtp-Source: ABdhPJzKJjo+4i22doEfV7yx3IYktJ3jj4EOHDvZEs21nHetaud1mfeiFp8gdC0lK6WMgPjwB27Hhg== X-Received: by 2002:a5d:4e46:: with SMTP id r6mr3589306wrt.218.1605275403918; Fri, 13 Nov 2020 05:50:03 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id t11sm4561614wrm.8.2020.11.13.05.50.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 05:50:03 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 18/40] drm/mediatek/mtk_dpi: Remove unused struct definition 'mtk_dpi_encoder_funcs' Date: Fri, 13 Nov 2020 13:49:16 +0000 Message-Id: <20201113134938.4004947-19-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201113134938.4004947-1-lee.jones@linaro.org> References: <20201113134938.4004947-1-lee.jones@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: Chun-Kuang Hu , Jie Qiu , David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/mediatek/mtk_dpi.c:530:39: warning: ‘mtk_dpi_encoder_funcs’ defined but not used [-Wunused-const-variable=] Cc: Chun-Kuang Hu Cc: Philipp Zabel Cc: David Airlie Cc: Daniel Vetter Cc: Matthias Brugger Cc: Jie Qiu Cc: dri-devel@lists.freedesktop.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mediatek@lists.infradead.org Signed-off-by: Lee Jones --- drivers/gpu/drm/mediatek/mtk_dpi.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index cf11c4850b405..52f11a63a3304 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -522,15 +522,6 @@ static int mtk_dpi_set_display_mode(struct mtk_dpi *dpi, return 0; } -static void mtk_dpi_encoder_destroy(struct drm_encoder *encoder) -{ - drm_encoder_cleanup(encoder); -} - -static const struct drm_encoder_funcs mtk_dpi_encoder_funcs = { - .destroy = mtk_dpi_encoder_destroy, -}; - static int mtk_dpi_bridge_attach(struct drm_bridge *bridge, enum drm_bridge_attach_flags flags) {