From patchwork Mon Jan 11 19:19:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 360561 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3139777jai; Mon, 11 Jan 2021 11:20:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmB1jCbhhEBqdd2UglD2O9U9osyOPvsbdNuVwVyAe49rzi0H/sN87LR46HSskgO6TaCsIf X-Received: by 2002:aa7:9885:0:b029:1aa:8dda:1944 with SMTP id r5-20020aa798850000b02901aa8dda1944mr800463pfl.35.1610392826783; Mon, 11 Jan 2021 11:20:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610392826; cv=none; d=google.com; s=arc-20160816; b=TkpxjChmbC+OYxaBVOZw4wt7xkq5F7KfBm9mX1WU1Hn8A6BZX1oRoc6+w8YSLP/GWG sMvLFf30zEOttensTPmoP9nCgbgMavqKR7+9iHkKBuVEU42oxQID7k0sGZqFLE01K3Y+ crcc7sEjDA2EK4GUF8OPCK8k9f9dBfY3BiOdOd6BWnvOPUUgnCe6aWZ7Fo9y5gAFAiEv mwK0+sCSqsgTmpvVZNmgV/LaOAZ84EHFFiK6QODzHJkYq+qVQHbntklnUNBytd7lp3H9 a70GZ1UEZsdlqY0Nw0kIvepb4/CAp6/YquN/nr1MRoomNcIp3t2eVA0ooZyUjum17FEx oGAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=kZqga6kQDWz2sUkktLtaCuSKEJCdgTHN0Fk/BXb+2yk=; b=o3zp/6Lfw2mS89ao/vKq+Thzt/gWS7urAfu45TpNP6DMsCL7kdiOjn4j1/1R1iIIez EeCjM1hPSDPZTeh1ibBfqw+XhKCleIgA1+J5wBHZCeYGOEctaeOQ5/w3Xcb3z5Pfknnm ktLtMkJAy4I5f5pMk/lwIAQSSuCq4ssxFlCRhr6/8S7EUThaVSO0bGA4dEuFL9UXf3qO 9k8aNyMuZJBgzezJGy8bNZCG4LfJQQWh+lxgsS5JTuMnH23f2bL4ouwbYOdW3tk3k5nV +/Fi0TJ8GlGLUG84vuvCtO7FsPF8d5rRbtOfQq3j4nWVxdHDuiOfKS5ScxgGoTkf4zhk a1mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=zm4hqUDY; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id y17si405755pga.565.2021.01.11.11.20.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:20:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=zm4hqUDY; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 75D2689F63; Mon, 11 Jan 2021 19:20:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 93F3A89EEB for ; Mon, 11 Jan 2021 19:20:04 +0000 (UTC) Received: by mail-wm1-x32b.google.com with SMTP id 3so285398wmg.4 for ; Mon, 11 Jan 2021 11:20:04 -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=VihTPCTNoey/JKY1Z4Geihy/+CpWTn44EgwyKVU/So4=; b=zm4hqUDYRKWhOH93S0m6OzMUm2UG0kbFx1gdPzIUP19LFjdloPHHu0sy2fhop86XTG lMCU33kWxfEz2L2MA9+m4H0OjD6rNFqjxqyf+fTeirC+7Y3E2TazSeF3rksQrfnfUJsd N87z5kKXvI2t/VK2m80dg7kK4749/ktGuBUBgpxi65KVqgbhjv1q9D2USLW6HEUY56+h zr5Md/jQvtZvIJZlamRiRiCxmqZIVxD5XQT/gbHuAi4gvU9+NeyMewqq1vPRXEODaPDt yFdthHeJA9zUM2cvKd25q75bYxtpHj8wkDRxbn6o1JPPDZtZmxaiqLbGNJjvJ7SCcGcP r44w== 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=VihTPCTNoey/JKY1Z4Geihy/+CpWTn44EgwyKVU/So4=; b=Fk+LI2RQS6kw7rNaGDocT+GW6MV5L5927Qc65feVehbE2H5dYSTWDOr/Z79ZMiY3UW ctxXWuPmrBvziVZwxEyVb69UYAGBHlGYSghDAUo8jhHrGU2fIYp61UDcQFzqSGyObnAK wMINBjxvyWiDiRtbK1Sqi7jz79/Pxmx+vviEozVH28+104KhXC7CxVmg7j+rM83aTGuR GrW/pm+raMrcjAB99DAQNSslp7Ue19aXbmiwgvD40EfGKgmGXr95zlFfhG1QjBZ2Lep5 D449z5iVh1xfgNSxbaIloNiQymKaTmSXqTDX/DZyRyIksqhIEtziTG2ffRsaRcvfZBkV RR6Q== X-Gm-Message-State: AOAM533zxjVnHe1pp+DCJdnDzFEBdoWjgg/V+4JZQGYZNetKqwlKOrLs 79OeCB6QtRUD4KN2tIwTkOuMB26t6dxjPQT6 X-Received: by 2002:a1c:bd56:: with SMTP id n83mr291291wmf.72.1610392802992; Mon, 11 Jan 2021 11:20:02 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id n3sm778090wrw.61.2021.01.11.11.20.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:20:02 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 25/40] drm/amd/display/dc/dce120/dce120_timing_generator: Remove unused function 'dce120_timing_generator_get_position' Date: Mon, 11 Jan 2021 19:19:11 +0000 Message-Id: <20210111191926.3688443-26-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210111191926.3688443-1-lee.jones@linaro.org> References: <20210111191926.3688443-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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_timing_generator.c:602:13: warning: ‘dce120_timing_generator_get_position’ defined but not used [-Wunused-function] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Lee Jones Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- .../dc/dce120/dce120_timing_generator.c | 43 ------------------- 1 file changed, 43 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c b/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c index d02ecb983c9cd..b57c466124e76 100644 --- a/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c +++ b/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c @@ -589,49 +589,6 @@ static void dce120_timing_generator_set_drr( } } -/* - ***************************************************************************** - * Function: dce120_timing_generator_get_position - * - * @brief - * Returns CRTC vertical/horizontal counters - * - * @param [out] position - ***************************************************************************** - */ -static void dce120_timing_generator_get_position(struct timing_generator *tg, - struct crtc_position *position) -{ - uint32_t value; - struct dce110_timing_generator *tg110 = DCE110TG_FROM_TG(tg); - - value = dm_read_reg_soc15( - tg->ctx, - mmCRTC0_CRTC_STATUS_POSITION, - tg110->offsets.crtc); - - position->horizontal_count = get_reg_field_value( - value, - CRTC0_CRTC_STATUS_POSITION, - CRTC_HORZ_COUNT); - - position->vertical_count = get_reg_field_value( - value, - CRTC0_CRTC_STATUS_POSITION, - CRTC_VERT_COUNT); - - value = dm_read_reg_soc15( - tg->ctx, - mmCRTC0_CRTC_NOM_VERT_POSITION, - tg110->offsets.crtc); - - position->nominal_vcount = get_reg_field_value( - value, - CRTC0_CRTC_NOM_VERT_POSITION, - CRTC_VERT_COUNT_NOM); -} - - static void dce120_timing_generator_get_crtc_scanoutpos( struct timing_generator *tg, uint32_t *v_blank_start,