From patchwork Sat Dec 16 16:26:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13495644 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 A6DA6C46CD4 for ; Sat, 16 Dec 2023 16:27:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ua3Xg9WT7mAbuMvhLEY6X1dagWd9RnF6vWD3sh3gp1E=; b=nfRLsl2FM8N1gF a+oBSyTCBU588xO8P4OqJ3EJxKYeaXMp+wO38u129rp0YFoKpiie1cg/fdG3ZGXs15QbqgJrgPsLq +0HXtlgpls86cIufJDjmwYvZPADN6wbuCm2sbobtpS2tp6OwBfmVT9A62yhmK2AHzWIxYr9ZFXBaZ ZhHdA6+3llBZ90/DYq5axXqHtVgkXRUHXXpIkunCQJDLH1VBndr6kWq6Oy70zzUOSgLKQrxbPLE2R xke3vSXK9m7cjPwuwMgwXLvEI8i5rVDJvGreL8MpGFrx4Z619+ETqOhZtC9cAFdQLXsNJSWyzmtyf CahuWNujEqNfJa/tGgpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rEXVV-006JuT-1M; Sat, 16 Dec 2023 16:27:17 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rEXVO-006JnQ-1s; Sat, 16 Dec 2023 16:27:11 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-50bdec453c8so1858427e87.3; Sat, 16 Dec 2023 08:27:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702744028; x=1703348828; darn=lists.infradead.org; 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=ujhT/xhztHbY8JzCzlkbXu+iQMCJG+MMsIZQaYuJZKs=; b=SUtfAFMIbl1jKLXicM/GuMSQNGnoxRpGmMcVVccvMHb/1nwRF9kIsnAGMjucWmOq9W l+aBWfbGShGd/2Y2q3Hgq9eDsMpjlCKh1Qhwhx8lnfspW2m1acBvFglLxc9TPOiwy12a 6R00eQ+apNg1lJLTMA0izgw48ZGZr0W1jHGXYDFsykMR/k2fnamPOHztxH3YWgCMqHMc 7MxBMlEtMzusX5VdBOCbtORmPhC1X9funXgbYVL0yzML2jHPFSTXWXBrEMj7KZ5TfwvB Yev3NoFCzxQ1pHPg1hetmtBR8nnawg7nrnvRmq/NHRqrbKjdg+gndkqevbERYIqw0EET xjLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702744028; x=1703348828; 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=ujhT/xhztHbY8JzCzlkbXu+iQMCJG+MMsIZQaYuJZKs=; b=s4yiAOvtRt7EqVOa1ixXkwkCQsWUd2gutQ18LRHDKdwsCw1B/E7pAC14NEQh+WhXJ0 JXkr44iFFvWX7nHVogDrDwf10389374LNmq/YHN118fZ9E5kM6Pz1xK7HNtIvG4MHTPj YWSi783NXRbz4d0EX71aGARR+ZGjaQeN2VUawZh5pEQ8p5wDaGwBjA0VxnQYueiQF8+r GsrX6jWLmDkP89rKVXM6tT0Xp4oB1kFmyK1aFvliAUWUUUmPpYkPTTFqR3HxYxW97IzD 89mba+jn4YMi5x+DKme6AHb+0BYW+lwwz1EIpiTlhQhoZnqxN67hGvNdzx4V5gviA6fA B3GQ== X-Gm-Message-State: AOJu0YzpNGoO4nl0z7KgpZFPwzEOo0ypJ26W5/y8MiKz7MeYg/Z/yKpH J9JB+TvKOLRoFldkdbNhag== X-Google-Smtp-Source: AGHT+IEoZS1JzzGc12YB/MN689Vsdo/GX0yIsCmhRzmI2mChIP6YnFGPdCsy2rPk5UV5T25TnOSVWw== X-Received: by 2002:a19:8c0d:0:b0:50b:f55b:abb9 with SMTP id o13-20020a198c0d000000b0050bf55babb9mr6923253lfd.94.1702744028520; Sat, 16 Dec 2023 08:27:08 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:e807:d345:6f47:1db9]) by smtp.gmail.com with ESMTPSA id st10-20020a170907c08a00b00a1cd0794696sm11990362ejc.53.2023.12.16.08.27.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 08:27:08 -0800 (PST) From: Alex Bee To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Andy Yan , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann Cc: David Airlie , Daniel Vetter , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH v2 04/27] drm/rockchip: inno_hdmi: Remove useless mode_fixup Date: Sat, 16 Dec 2023 17:26:15 +0100 Message-ID: <20231216162639.125215-5-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231216162639.125215-1-knaerzche@gmail.com> References: <20231216162639.125215-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231216_082710_641370_1F02FF46 X-CRM114-Status: GOOD ( 10.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Maxime Ripard The mode_fixup implementation doesn't do anything, so we can simply remove it. Signed-off-by: Maxime Ripard Tested-by: Alex Bee --- changes in v2: - imported patch drivers/gpu/drm/rockchip/inno_hdmi.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index 345253e033c5..0b1740b38c7b 100644 --- a/drivers/gpu/drm/rockchip/inno_hdmi.c +++ b/drivers/gpu/drm/rockchip/inno_hdmi.c @@ -517,13 +517,6 @@ static void inno_hdmi_encoder_disable(struct drm_encoder *encoder) inno_hdmi_set_pwr_mode(hdmi, LOWER_PWR); } -static bool inno_hdmi_encoder_mode_fixup(struct drm_encoder *encoder, - const struct drm_display_mode *mode, - struct drm_display_mode *adj_mode) -{ - return true; -} - static int inno_hdmi_encoder_atomic_check(struct drm_encoder *encoder, struct drm_crtc_state *crtc_state, @@ -540,7 +533,6 @@ inno_hdmi_encoder_atomic_check(struct drm_encoder *encoder, static struct drm_encoder_helper_funcs inno_hdmi_encoder_helper_funcs = { .enable = inno_hdmi_encoder_enable, .disable = inno_hdmi_encoder_disable, - .mode_fixup = inno_hdmi_encoder_mode_fixup, .mode_set = inno_hdmi_encoder_mode_set, .atomic_check = inno_hdmi_encoder_atomic_check, };