From patchwork Thu Nov 2 13:41:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 160883 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp362451vqu; Thu, 2 Nov 2023 06:43:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEdIUnrGoJoltfiyqvUnqbyMoNGGmm5sF8wQAByUMBi2+eEI1vqtbmUqdK5i3SMVJMvhQR5 X-Received: by 2002:a05:6a20:1587:b0:15d:b243:6131 with SMTP id h7-20020a056a20158700b0015db2436131mr22747669pzj.44.1698932580588; Thu, 02 Nov 2023 06:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698932580; cv=none; d=google.com; s=arc-20160816; b=aNtRfmuqQlEZsdOKlE4ItHXwILqY1l3mPOrzM+/m4cPitByzmXaJStM6l8cZjmbYg9 9e0qA5zK4nDX8lbZZJomJsLDQ+cpy5dqlNWGAljPZIjCuF2pNMYauSw4O8HHBKC61Ind Yi41NQd+H+PEmvo85I9xUSch4Gmw+M6+Jwuo7Tb1OjOiZuAkOV4nJ9+6O/d552CzBNAF bdR1PEBEGGlaYUtf5BWPsEb3Iqu6xohImiQp7GLStEeq/ACc0LAOmOrGkR2gAW3A63ZU d2zm+G3ZxcEwQxYhzlAxhog0tuDKO5pZKJ463gP6zRVWfc8hbkTPLmF0ixuLBPhnWDgT Bglw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=525ntZUU9IDbVV4Jw2CWfdlqQxiLo8Ec66BuDOeD0GA=; fh=v9EK/ZpF7mC7HytCEN1dwHNmJmndcYWW0//5MYgVSx0=; b=NFH89lVOovDd96nYqC/ycaJtZJDTZJIfO5bix/iBeR4aJmEJA8NB5v+hxH9Cu26g7K wgClELmcevcOroXruyKqmmMljb9vAw3kCatZjXLQ2QaH3Oe63I1fBeIeMHyucNNe0OC3 LrnXL3dGGEy+s4hGIIshfv9ssaEZcfq8H5URPJz/EbHUYaVKEOWKmu/ZQTUzvvSJjDET +D1jObSsrn1oTLIR7sAFi/B2f5+w9E6XIIc8i/yFIGlupZzLWcV+ymhkFJvalZ/+kTCl s6pmV7G7OdXI2Ek+vx92onBh4ZPG5LayuccUoyPv/hau2D3L8MZP3V2VgqZtNXBcw1Tu 3DZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HOPp+UT1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id u186-20020a6379c3000000b005b22561c968si1778426pgc.499.2023.11.02.06.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 06:43:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HOPp+UT1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 6117A808FBD6; Thu, 2 Nov 2023 06:42:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229513AbjKBNl4 (ORCPT + 36 others); Thu, 2 Nov 2023 09:41:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376595AbjKBNly (ORCPT ); Thu, 2 Nov 2023 09:41:54 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB989A6 for ; Thu, 2 Nov 2023 06:41:51 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9d2e6c8b542so140217266b.0 for ; Thu, 02 Nov 2023 06:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698932510; x=1699537310; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=525ntZUU9IDbVV4Jw2CWfdlqQxiLo8Ec66BuDOeD0GA=; b=HOPp+UT1mZycwWWMFCveZaaACVEW6VvvEe1EdoJjjwOCm149DGB60L54q8m+JvKAb2 EP8UVQ0NWre/HRbQnfYfMeWRPPzmSJOcdf2TbYEK1kwtJ6v/hsoemS9KZ2+AhrZt2bzu D5zKZk1MiHJniuWAuST3kAlOtwCnlEbfA+Hn/lJd5iIu4Wr6yc/VapXjl7c9XGK+UiIM MmpFHGpSgsas9f6A4vGSHKdWhO1+qca0S7e8t3Gj+3zoK0/HwANz3CX3tJ0Uw2NlDzZz DBH83t3YLKoZzLHygs1KETxpjffTzQfWLZw815CwSheSlNVJQ6/fazqx+PbQ6E6hWXdy ozXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698932510; x=1699537310; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=525ntZUU9IDbVV4Jw2CWfdlqQxiLo8Ec66BuDOeD0GA=; b=Ypn9ZWSAl4XOJe9wmCsOJBcZZmFswwMC9yA5pyh1CJMAJ5Efs3izEvmUufkXWHGByy dX4wr4pmEadFjsBODl6zOEnXi8qqKH3mf9QTnFYw2OvgJ2dbBAli6twf/YWecVPzx9aP /kUj4wN0yxZmEgvugUlxpaaR/6lOOsyBwI4EjdyMMOcjouvw4oCR3wJNrW386kqOKlMu 08PCeDFNt9sUdvBEzZcuRMq9k/FUrwgFCrp97UZXuJSW5ywpOC2fBarQSQMCFAvJt/lN 29wJkteIVUwL1KCxD8mApJSonDgHgmcJ6DnMRzE7tdWEZdI9F1amAttAiXXSvsvWqyi2 ZdqA== X-Gm-Message-State: AOJu0YwxrDpXaR+RtCSn3vWyUty3E9Wg64ctFlT/1/eRXsYLlwaLsKNm 89axOQ3kQo8xIhnpBiBXSUz/ubYKjVA= X-Received: by 2002:a17:906:eec3:b0:9b2:b153:925 with SMTP id wu3-20020a170906eec300b009b2b1530925mr3895676ejb.21.1698932509891; Thu, 02 Nov 2023 06:41:49 -0700 (PDT) Received: from [192.168.2.1] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id hb9-20020a170906b88900b009adcb6c0f0esm1157638ejb.193.2023.11.02.06.41.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Nov 2023 06:41:49 -0700 (PDT) Message-ID: <5649ac03-db92-42a9-d86a-76dfa1af7c64@gmail.com> Date: Thu, 2 Nov 2023 14:41:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 From: Johan Jonker Subject: [PATCH v1 1/4] drm/rockchip: rk3066_hdmi: Remove useless mode_fixup To: hjc@rock-chips.com, heiko@sntech.de Cc: airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: Content-Language: en-US In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 02 Nov 2023 06:42:36 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781459929432922623 X-GMAIL-MSGID: 1781459929432922623 The mode_fixup implementation doesn't do anything, so we can simply remove it. Signed-off-by: Johan Jonker --- drivers/gpu/drm/rockchip/rk3066_hdmi.c | 9 --------- 1 file changed, 9 deletions(-) -- 2.39.2 diff --git a/drivers/gpu/drm/rockchip/rk3066_hdmi.c b/drivers/gpu/drm/rockchip/rk3066_hdmi.c index fa6e592e0276..5c269081c691 100644 --- a/drivers/gpu/drm/rockchip/rk3066_hdmi.c +++ b/drivers/gpu/drm/rockchip/rk3066_hdmi.c @@ -434,14 +434,6 @@ static void rk3066_hdmi_encoder_disable(struct drm_encoder *encoder) rk3066_hdmi_set_power_mode(hdmi, HDMI_SYS_POWER_MODE_A); } -static bool -rk3066_hdmi_encoder_mode_fixup(struct drm_encoder *encoder, - const struct drm_display_mode *mode, - struct drm_display_mode *adj_mode) -{ - return true; -} - static int rk3066_hdmi_encoder_atomic_check(struct drm_encoder *encoder, struct drm_crtc_state *crtc_state, @@ -459,7 +451,6 @@ static const struct drm_encoder_helper_funcs rk3066_hdmi_encoder_helper_funcs = { .enable = rk3066_hdmi_encoder_enable, .disable = rk3066_hdmi_encoder_disable, - .mode_fixup = rk3066_hdmi_encoder_mode_fixup, .mode_set = rk3066_hdmi_encoder_mode_set, .atomic_check = rk3066_hdmi_encoder_atomic_check, };