From mboxrd@z Thu Jan 1 00:00:00 1970 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 80BB2C54EE9 for ; Thu, 22 Sep 2022 20:48:21 +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: Date:Cc:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=R4rM3EZC2wqSTwqjppkIeV27JKECSlLskx0GwkZC5n8=; b=r6OcolOIEhZyyF 8nh3eq0CoWqERIYOEqRhnlanJ3tQyYWRS/MPel1WAkIBuoJJaFJfuwNkdS6FKS7AAVy4JWW1TzHhw I5RGJBRD6T7A/vbwxqcX2mYTw/AmQMSAbhp2Tc+zUfYqJrt0F4Uiny/mKcW5r3SexfuVB38ELS436 UgLk+OWLOKFgTLAYqqQNAQGZdNExWUbmMoAV+7hDLkFlmELPnJ82SQKOzeOMTkkqRvh5rQq3bYiJa PttBhpGkF5n9p9Nl36AfIMK2LmhJvacGGW9eHxxpnCcI67P3zInp8J/motPzyMEH8Zb3+Hqw1XiZ7 XJGWlcAOT4Ew5Jh13yFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1obT6Q-000Ahm-8h; Thu, 22 Sep 2022 20:47:22 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1obT6N-000AfD-1T for linux-arm-kernel@lists.infradead.org; Thu, 22 Sep 2022 20:47:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663879635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2pTwmQ+KMlHtgNXiw9Gsc6D/W6nJso72Y3DgksJPfuk=; b=RbvZ7G5DdW46gn3Qt5iQvqxvOEwE3QyBlavj2Egs/AkmeQeF2FxhlgioXrDG72s4nemAbt SpICkF9k044AYX1eRXRQhhyI3xpvCx8UHNWwOtPPWDUq5/4zgetzDjWraf040FIRgJ9XXV Cv0HFo27jwG6UBN8wc9FHjK4VbrHSEs= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-93-97SoPkugNmCVMKvEDFTRsg-1; Thu, 22 Sep 2022 16:45:42 -0400 X-MC-Unique: 97SoPkugNmCVMKvEDFTRsg-1 Received: by mail-qk1-f197.google.com with SMTP id bm21-20020a05620a199500b006cf6a722b16so1522178qkb.0 for ; Thu, 22 Sep 2022 13:45:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:organization :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date; bh=2pTwmQ+KMlHtgNXiw9Gsc6D/W6nJso72Y3DgksJPfuk=; b=UnGBCbuNdKBrsGGGtmSpeePeidhZ17y5I4mdCAdlAHFr1W/Y+AKpTHnx0QTSig+qmD /P/7J0/bnWO8pz6GOIaBmp30/dJq7plLzRceCfuio6N16MgbsC52D/OKZZe8x3UDgjbZ cS4KysvIMh+Nqo8flN3P+RXUF1HPjUD/cLAvkdhkgFWZkBXnyMZWPOeNUg2U5vyvb1yA 2tuH9zCzXNiWVhpvyw6MjpVC9HHjvpiol5F7uEU4gIXDm6g/ShyHPpHlr1r4cnBdO1ia 1mPfhxA3pH+/Dbs5nCV4j16YsDmeuwIhZV4Iq20lZWDs8w03NuOz1YdFqL8GwcpvV4cp 2SBA== X-Gm-Message-State: ACrzQf2XqyX6Ni849/290y4PCiZjBkj7+bKLvMUjNkZZeP22IbkPjtTl sOhUQGKmT6EVgCTKBStGu/hqDBcc8VQjqPuKAGX3G1OqW73+pog+qlefMfoGy2UHmsyTg+OZYsR sdjDBrW64ZeBPihWLYExNq4FJAu9cbL4vyG4= X-Received: by 2002:ac8:57cc:0:b0:35c:b5d1:9024 with SMTP id w12-20020ac857cc000000b0035cb5d19024mr4552776qta.214.1663879541914; Thu, 22 Sep 2022 13:45:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6UJCB0gG/rO87ayUHT6cZoHMF2bD+DFkmZIeVDat+OrR1utdi7dIqfkWvtqZHLQ+pmTyKJ5A== X-Received: by 2002:ac8:57cc:0:b0:35c:b5d1:9024 with SMTP id w12-20020ac857cc000000b0035cb5d19024mr4552744qta.214.1663879541641; Thu, 22 Sep 2022 13:45:41 -0700 (PDT) Received: from ?IPv6:2600:4040:5c48:e00::feb? ([2600:4040:5c48:e00::feb]) by smtp.gmail.com with ESMTPSA id n12-20020a05620a294c00b006ce63901d27sm4686286qkp.4.2022.09.22.13.45.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 13:45:40 -0700 (PDT) Message-ID: <3bfe5ffbba617f56290e79db358364ba8dc49fee.camel@redhat.com> Subject: Re: [PATCH v2 08/33] drm/connector: Rename drm_mode_create_tv_properties From: Lyude Paul To: Maxime Ripard , Jernej Skrabec , Rodrigo Vivi , Ben Skeggs , David Airlie , Maxime Ripard , Joonas Lahtinen , Emma Anholt , Karol Herbst , Samuel Holland , Jani Nikula , Thomas Zimmermann , Daniel Vetter , Maarten Lankhorst , Tvrtko Ursulin , Chen-Yu Tsai Cc: Hans de Goede , nouveau@lists.freedesktop.org, Geert Uytterhoeven , Dave Stevenson , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Phil Elwell , intel-gfx@lists.freedesktop.org, Noralf =?ISO-8859-1?Q?Tr=F8nnes?= , Dom Cobley , linux-sunxi@lists.linux.dev, Mateusz Kwiatkowski , dri-devel@lists.freedesktop.org Date: Thu, 22 Sep 2022 16:45:39 -0400 In-Reply-To: <20220728-rpi-analog-tv-properties-v2-8-f733a0ed9f90@cerno.tech> References: <20220728-rpi-analog-tv-properties-v2-0-f733a0ed9f90@cerno.tech> <20220728-rpi-analog-tv-properties-v2-8-f733a0ed9f90@cerno.tech> Organization: Red Hat Inc. User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220922_134719_183577_13722EA9 X-CRM114-Status: GOOD ( 25.79 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org For nouveau: Reviewed-by: Lyude Paul On Thu, 2022-09-22 at 16:25 +0200, Maxime Ripard wrote: > drm_mode_create_tv_properties(), among other things, will create the > "mode" property that stores the analog TV mode that connector is > supposed to output. > > However, that property is getting deprecated, so let's rename that > function to mention it's deprecated. We'll introduce a new variant of > that function creating the property superseeding it in a later patch. > > Signed-off-by: Maxime Ripard > > diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c > index 17a5913cefe3..4e4fbc9e0049 100644 > --- a/drivers/gpu/drm/drm_connector.c > +++ b/drivers/gpu/drm/drm_connector.c > @@ -1600,7 +1600,7 @@ EXPORT_SYMBOL(drm_connector_attach_tv_margin_properties); > * Called by a driver's HDMI connector initialization routine, this function > * creates the TV margin properties for a given device. No need to call this > * function for an SDTV connector, it's already called from > - * drm_mode_create_tv_properties(). > + * drm_mode_create_tv_properties_legacy(). > * > * Returns: > * 0 on success or a negative error code on failure. > @@ -1635,7 +1635,7 @@ int drm_mode_create_tv_margin_properties(struct drm_device *dev) > EXPORT_SYMBOL(drm_mode_create_tv_margin_properties); > > /** > - * drm_mode_create_tv_properties - create TV specific connector properties > + * drm_mode_create_tv_properties_legacy - create TV specific connector properties > * @dev: DRM device > * @num_modes: number of different TV formats (modes) supported > * @modes: array of pointers to strings containing name of each format > @@ -1648,9 +1648,9 @@ EXPORT_SYMBOL(drm_mode_create_tv_margin_properties); > * Returns: > * 0 on success or a negative error code on failure. > */ > -int drm_mode_create_tv_properties(struct drm_device *dev, > - unsigned int num_modes, > - const char * const modes[]) > +int drm_mode_create_tv_properties_legacy(struct drm_device *dev, > + unsigned int num_modes, > + const char * const modes[]) > { > struct drm_property *tv_selector; > struct drm_property *tv_subconnector; > @@ -1733,7 +1733,7 @@ int drm_mode_create_tv_properties(struct drm_device *dev, > nomem: > return -ENOMEM; > } > -EXPORT_SYMBOL(drm_mode_create_tv_properties); > +EXPORT_SYMBOL(drm_mode_create_tv_properties_legacy); > > /** > * drm_mode_create_scaling_mode_property - create scaling mode property > diff --git a/drivers/gpu/drm/gud/gud_connector.c b/drivers/gpu/drm/gud/gud_connector.c > index 86e992b2108b..034e78360d4f 100644 > --- a/drivers/gpu/drm/gud/gud_connector.c > +++ b/drivers/gpu/drm/gud/gud_connector.c > @@ -400,7 +400,7 @@ static int gud_connector_add_tv_mode(struct gud_device *gdrm, struct drm_connect > for (i = 0; i < num_modes; i++) > modes[i] = &buf[i * GUD_CONNECTOR_TV_MODE_NAME_LEN]; > > - ret = drm_mode_create_tv_properties(connector->dev, num_modes, modes); > + ret = drm_mode_create_tv_properties_legacy(connector->dev, num_modes, modes); > free: > kfree(buf); > if (ret < 0) > @@ -539,7 +539,7 @@ static int gud_connector_add_properties(struct gud_device *gdrm, struct gud_conn > fallthrough; > case GUD_PROPERTY_TV_HUE: > /* This is a no-op if already added. */ > - ret = drm_mode_create_tv_properties(drm, 0, NULL); > + ret = drm_mode_create_tv_properties_legacy(drm, 0, NULL); > if (ret) > goto out; > break; > diff --git a/drivers/gpu/drm/i2c/ch7006_drv.c b/drivers/gpu/drm/i2c/ch7006_drv.c > index d29b63fd6178..506f6f932518 100644 > --- a/drivers/gpu/drm/i2c/ch7006_drv.c > +++ b/drivers/gpu/drm/i2c/ch7006_drv.c > @@ -250,7 +250,7 @@ static int ch7006_encoder_create_resources(struct drm_encoder *encoder, > struct drm_device *dev = encoder->dev; > struct drm_mode_config *conf = &dev->mode_config; > > - drm_mode_create_tv_properties(dev, NUM_TV_NORMS, ch7006_tv_norm_names); > + drm_mode_create_tv_properties_legacy(dev, NUM_TV_NORMS, ch7006_tv_norm_names); > > priv->scale_property = drm_property_create_range(dev, 0, "scale", 0, 2); > if (!priv->scale_property) > diff --git a/drivers/gpu/drm/i915/display/intel_tv.c b/drivers/gpu/drm/i915/display/intel_tv.c > index abaf9ded942d..5e88da8185ee 100644 > --- a/drivers/gpu/drm/i915/display/intel_tv.c > +++ b/drivers/gpu/drm/i915/display/intel_tv.c > @@ -1984,7 +1984,7 @@ intel_tv_init(struct drm_i915_private *dev_priv) > > tv_format_names[i] = tv_modes[i].name; > } > - drm_mode_create_tv_properties(dev, i, tv_format_names); > + drm_mode_create_tv_properties_legacy(dev, i, tv_format_names); > > drm_object_attach_property(&connector->base, > dev->mode_config.legacy_tv_mode_property, > diff --git a/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c b/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c > index 1a15534adc60..e5480dab55e3 100644 > --- a/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c > +++ b/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c > @@ -653,7 +653,7 @@ static int nv17_tv_create_resources(struct drm_encoder *encoder, > tv_enc->tv_norm = i; > } > > - drm_mode_create_tv_properties(dev, num_tv_norms, nv17_tv_norm_names); > + drm_mode_create_tv_properties_legacy(dev, num_tv_norms, nv17_tv_norm_names); > > drm_object_attach_property(&connector->base, > conf->tv_select_subconnector_property, > diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.c > index 77c50ecb0309..f31fef938f11 100644 > --- a/drivers/gpu/drm/vc4/vc4_vec.c > +++ b/drivers/gpu/drm/vc4/vc4_vec.c > @@ -514,8 +514,9 @@ static int vc4_vec_bind(struct device *dev, struct device *master, void *data) > struct vc4_vec *vec; > int ret; > > - ret = drm_mode_create_tv_properties(drm, ARRAY_SIZE(tv_mode_names), > - tv_mode_names); > + ret = drm_mode_create_tv_properties_legacy(drm, > + ARRAY_SIZE(tv_mode_names), > + tv_mode_names); > if (ret) > return ret; > > diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h > index 5cfad8b6ad83..d566b4a4709c 100644 > --- a/include/drm/drm_connector.h > +++ b/include/drm/drm_connector.h > @@ -1799,9 +1799,9 @@ int drm_mode_create_dvi_i_properties(struct drm_device *dev); > void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector); > > int drm_mode_create_tv_margin_properties(struct drm_device *dev); > -int drm_mode_create_tv_properties(struct drm_device *dev, > - unsigned int num_modes, > - const char * const modes[]); > +int drm_mode_create_tv_properties_legacy(struct drm_device *dev, > + unsigned int num_modes, > + const char * const modes[]); > void drm_connector_attach_tv_margin_properties(struct drm_connector *conn); > int drm_mode_create_scaling_mode_property(struct drm_device *dev); > int drm_connector_attach_content_type_property(struct drm_connector *dev); > -- Cheers, Lyude Paul (she/her) Software Engineer at Red Hat _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel