Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp770515imn; Sat, 30 Jul 2022 02:19:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR7dD6bBfVXExBVTXXOI2wwY3Tnm8HJMA/vZTmxgf8kAzQwUFkT5kruaMpObc/lb1d/r/UaI X-Received: by 2002:a17:902:bd93:b0:16e:d41e:c862 with SMTP id q19-20020a170902bd9300b0016ed41ec862mr688432pls.67.1659172754529; Sat, 30 Jul 2022 02:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659172754; cv=none; d=google.com; s=arc-20160816; b=j859ISQMhLJCihxFBIs9pknZWCpakE2Cw/iO543mxlcpMdZZM/4vGUgLYMQ5qW3UMa GEJvISviWQXA1OMk6Y8YlYSP3QyeHE45yNR+W2QhxmCQED9pXbu453hDope0C7d14B56 y2wH6zQ/TO+tE65SX+to6/dc2zlJMwhHBKJSWqB/qnVvZpRmXq6J5N4JyWOkz9R6WOfe OXHn3rBC40CdCDmm+kBGmlyb4d2VNsJu7X3kXJFZtkyWEOvQnndbTMQZp6u8eYUf/Zwe RnExBKXh6jgxw8cYc88iZx6cfaLAW+KOLbBkYTycuCCj3fd+kpKGj7tVlG7DWGvJaZ6B doDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=i+7O6hms/hqLnG44y9CuXX+hyQPYHHY40QX+YQRZrcQ=; b=EYhLiAsT0rLZW++UY7ZN9cx3tH6oFsZs4nhZxInA0aTIZ2BixmEFe0EVvctA9hGSEH oY7/d9Uy0V1VyBeh+WS58/IBdWB5YAH9al7P+DUoFg0JaCOscVRvBJ+wXSSnFdjrI/gH /PNL1ssT6N7EVvnLxc4/GLLhAs8hVZOZP0f6muduoT1FxPcFcWrYXGrO98xBPP3m6srm d1RivtALX47zGb+C3/DUB7SfyJmOjaVYdkbRf5s6nje96Tgjw14W6zKpiRWXyiDqjKJL I230dDg32T/J7+83zIH0OBCMioCQk2fDVpsjWETo5MiaROmw5PLWIUBiEnG7JKvfT3/k uk1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=I463grYf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z24-20020a63b918000000b00412ac5909e7si7005526pge.421.2022.07.30.02.18.59; Sat, 30 Jul 2022 02:19:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=I463grYf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233514AbiG3JOt (ORCPT + 99 others); Sat, 30 Jul 2022 05:14:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230382AbiG3JOs (ORCPT ); Sat, 30 Jul 2022 05:14:48 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15F773DF19 for ; Sat, 30 Jul 2022 02:14:47 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id bp15so12168161ejb.6 for ; Sat, 30 Jul 2022 02:14:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=i+7O6hms/hqLnG44y9CuXX+hyQPYHHY40QX+YQRZrcQ=; b=I463grYfVol0JRUlt+Ar+SpcJUB4ZO9pNGMk3/6nbERWzXNnIlibdYQ9cGLRUwcdn0 7fPs1V3TsdNGHjKKB5BGN45EUyF7Wugi7wwhUJ/7OxSNvgtsEo1A8biJVgtzfbXFqgfK I2oOZ6oRwBoo7JEE1aAnCwt43GepXKPWGHhnUmmM6ZV+wrcdgIu5wwhgd1X934R+b+PS N+pb9eFkY8TnaObP8ZIpEJwsPFxFwSNi9+uy+Ucj9ofrw7BTQe8qYLQRsn56BEQmQhkc 4Rl8DvXCRHTHsdydiNGH8CZ0PJtM3lIFi7IlIKiKUDGDHkYi4jP9KdDTDjAxBLxSVhck XRfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=i+7O6hms/hqLnG44y9CuXX+hyQPYHHY40QX+YQRZrcQ=; b=5aV3dz18x/WDksJmM7F72pK5G1p3enAcHwrgYfaUNHMYd560Fef9LSVOXQ4SoQcRc6 GWbmXvdcZe5tjbtU3HaUPt02MDlY9jfR4cfdo82MC8pf9O3SbmWKeAtGDWajrSRM/rcp DpcVtTtwFsptXqnsSdlNFpzbjqCuyngns3vsPMRKb4VmW6QjL6v3u+AEw62bgei7zE22 gejHaUylmzLGx4KLEZlazu07pE1j9g5GR/qJ4XtqAI9BCog3xELSiO58Ym17R4ksiCi1 n6WgmE+gjpbJpm0D3pA7xBLLjRr/ICm2/FqZhHheYadm8F83gYquuNWgb7FrnGAvY81O QjXw== X-Gm-Message-State: ACgBeo0bcHPLZu9W91INKTuZ/SWsZZQKrYY/t9tM9m+W8RbqdLBdaUxz GhBLTqnVf/OJ3lRTbkYmOmU= X-Received: by 2002:a17:907:75f7:b0:730:5b01:56b0 with SMTP id jz23-20020a17090775f700b007305b0156b0mr145624ejc.689.1659172485555; Sat, 30 Jul 2022 02:14:45 -0700 (PDT) Received: from jernej-laptop.localnet (194-152-27-124.dynamic.telemach.net. [194.152.27.124]) by smtp.gmail.com with ESMTPSA id p3-20020a17090653c300b00730223dc5c0sm2204354ejo.206.2022.07.30.02.14.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jul 2022 02:14:45 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Martin Blumenstingl , Chen-Yu Tsai , Philipp Zabel , Jerome Brunet , Samuel Holland , Thomas Zimmermann , Daniel Vetter , Emma Anholt , David Airlie , Maarten Lankhorst , Noralf =?ISO-8859-1?Q?Tr=F8nnes?= , Kevin Hilman , Neil Armstrong , Maxime Ripard , Maxime Ripard Cc: Maxime Ripard , linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Phil Elwell , Mateusz Kwiatkowski , linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven , Dave Stevenson , linux-amlogic@lists.infradead.org, dri-devel@lists.freedesktop.org, Dom Cobley Subject: Re: [PATCH v1 29/35] drm/sun4i: tv: Remove useless destroy function Date: Sat, 30 Jul 2022 11:14:43 +0200 Message-ID: <4754901.31r3eYUQgx@jernej-laptop> In-Reply-To: <20220728-rpi-analog-tv-properties-v1-29-3d53ae722097@cerno.tech> References: <20220728-rpi-analog-tv-properties-v1-0-3d53ae722097@cerno.tech> <20220728-rpi-analog-tv-properties-v1-29-3d53ae722097@cerno.tech> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dne petek, 29. julij 2022 ob 18:35:12 CEST je Maxime Ripard napisal(a): > Our destroy implementation is just calling the generic helper, so let's > just remove our function and directly use the helper. > > Signed-off-by: Maxime Ripard Reviewed-by: Jernej Skrabec Best regards, Jernej > > diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c > b/drivers/gpu/drm/sun4i/sun4i_tv.c index 52bbba8f19dc..6d7e1d51569a 100644 > --- a/drivers/gpu/drm/sun4i/sun4i_tv.c > +++ b/drivers/gpu/drm/sun4i/sun4i_tv.c > @@ -491,15 +491,9 @@ static const struct drm_connector_helper_funcs > sun4i_tv_comp_connector_helper_fu .get_modes = sun4i_tv_comp_get_modes, > }; > > -static void > -sun4i_tv_comp_connector_destroy(struct drm_connector *connector) > -{ > - drm_connector_cleanup(connector); > -} > - > static const struct drm_connector_funcs sun4i_tv_comp_connector_funcs = { > .fill_modes = drm_helper_probe_single_connector_modes, > - .destroy = sun4i_tv_comp_connector_destroy, > + .destroy = drm_connector_cleanup, > .reset = drm_atomic_helper_connector_reset, > .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, > .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,