Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2275657rdb; Thu, 21 Sep 2023 13:45:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4y0PUvw51gPBBz/VpXwgcaDrob/EFgrKcuIek/z2MTJNHmNY3lVrgfoMg2pY8mJS5iY0s X-Received: by 2002:a17:90a:296:b0:269:34a6:d4ca with SMTP id w22-20020a17090a029600b0026934a6d4camr6294249pja.0.1695329109275; Thu, 21 Sep 2023 13:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695329109; cv=none; d=google.com; s=arc-20160816; b=n7z5yJaHom3ZNwNb9u+blZjW0N0Nph7bLCKwvWnDGicL4XtZqjMF58DVh7NsjDgSCe gOU6yKTG68UE8kXQAoPts255uvXllTSdzQtEI0OHbST4lAho0iDtf+vF/H+2hDjAJJrX DxwVjVDP+IaoTA3RhQRGCk/OFUCg4/K1kk/Xz3txJa++tNklUiuvCjUoxQFUbqzbGBe3 xz4kVJhgdxZXLmJDOQfOd4B7/k/+aYmE3kQFBK66D5742x+ns9QkM3sZlG+BwoiKVGPM nD6a9jSkpcBW2Cy2w5klqzg3fo+Bwxu9csGEtfWDZAr1YvvmlSEaq5mMTWC8ECO5/69y jQUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JCq0O1XzoeOJfKdQOyYZ+dAwFcxhR4qFFxsFJNTh8Js=; fh=S2scqR5Dj4DRO8m0OEDQQ8zuxVfLOln3F3/AJCROVKY=; b=bwJ6jP04IRV1pngBh5Fuxu8CtdvVOk03dzlhOwfDIvnj1Wz+4VJ/41T06I9BKEnQm1 IwacTbCdc8izWRz6DKBNdt1c4Iv5OafqziQIA72uDrAhH4MCaqMx/rKrUWuQWsIHThfg 1chfgK1tVtGRsxAjHEVlOVWvYwxluoG0qlGSgyhtlE3+4efE26PUof5QTGqnoexDD0nf 9+pwfpNcKEoaldaWmhenuA8lEJ7BtRDtii+2ZkEP5oauMgfmqCfoKEpq5AbNrLfHFwsG YmSu8J6mQednW4z0mD5A1/KNi42H8czzas2U+uOxegztkF2WqycVnfGut5pAH4r+0nco 8Vag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B6f70IJz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id l4-20020a17090a49c400b0026f930e8b06si4512574pjm.118.2023.09.21.13.45.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 13:45:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B6f70IJz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 3132983797C2; Thu, 21 Sep 2023 13:24:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231648AbjIUUYQ (ORCPT + 99 others); Thu, 21 Sep 2023 16:24:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230347AbjIUUXz (ORCPT ); Thu, 21 Sep 2023 16:23:55 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0677400DA for ; Thu, 21 Sep 2023 10:15:03 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C50C4C43142; Thu, 21 Sep 2023 07:44:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695282268; bh=JCq0O1XzoeOJfKdQOyYZ+dAwFcxhR4qFFxsFJNTh8Js=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B6f70IJzip3FnaCZrw0WVSUtlY6I4GSvfMabPLaiFIJB2Wwdq/mTfBL48JDJYLGOz 0t7kIH92hy6TRL7/8LI4+rOg8BZV/GXJiGNlGucAL4JVlyv2ekoQ/GqhZnFbbbZlgi MkZxA3NAz1/MMr0nWD1CwdaJd+52AisXteMgLxZb3LIf1/QIwRRcbUH5hmQL7ZmqSt pCkB99QPMvHGPm0HQGdN+noOrvmwmws7/KBqaWi5Ba3HDERGuoz/8vPO2VvwZoL/7o FhI+YAq2PoyZoHnqlvqfeBOptNn1CLjUAzWqgxH3VzBJRzRYbtgEMcr/V51Oz44yNG cRV+9pdbRFUTg== Date: Thu, 21 Sep 2023 09:44:25 +0200 From: Maxime Ripard To: Javier Martinez Canillas Cc: Thomas Zimmermann , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Geert Uytterhoeven Subject: Re: [PATCH] drm/ssd130x: Drop _helper prefix from struct drm_*_helper_funcs callbacks Message-ID: <552hpgr7qzbjxuyei3n5m7rsn7ekwbdgzv25oe5vy6qb35gf23@q4etussk5jwl> References: <20230914195138.1518065-1-javierm@redhat.com> <87wmwo3q50.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2ociu33dmyngsoqo" Content-Disposition: inline In-Reply-To: <87wmwo3q50.fsf@minerva.mail-host-address-is-not-set> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 21 Sep 2023 13:24:28 -0700 (PDT) --2ociu33dmyngsoqo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Sep 18, 2023 at 09:19:07AM +0200, Javier Martinez Canillas wrote: > Thomas Zimmermann writes: >=20 > > Hi > > > > Am 14.09.23 um 21:51 schrieb Javier Martinez Canillas: > >> The driver uses a naming convention where functions for struct drm_*_f= uncs > >> callbacks are named ssd130x_$object_$operation, while the callbacks for > >> struct drm_*_helper_funcs are named ssd130x_$object_helper_$operation. > >>=20 > >> The idea is that this helper_ prefix in the function names denote that= are > >> for struct drm_*_helper_funcs callbacks. This convention was copied fr= om > >> other drivers, when ssd130x was written but Maxime pointed out that is= the > >> exception rather than the norm. > > > > I guess you found this in my code. I want to point out that I use the= =20 > > _helper infix to signal that these are callback for=20 > > drm_primary_plane_helper_funcs and *not* drm_primary_plane_funcs. The= =20 > > naming is intentional. > > >=20 > Yes, that's what tried to say in the commit message and indeed I got the > convention from drivers in drivers/gpu/drm/tiny. In fact I believe these > function names are since first iteration of the driver, when was meant to > be a tiny driver. >=20 > According to Maxime it's the exception rather than the rule and suggested > to change it, I don't really have a strong opinion on either naming TBH. Maybe that's just me, but the helper in the name indeed throws me off. In my mind, it's supposed to be used only for helpers, not functions implementing= the helpers hooks. Maxime --2ociu33dmyngsoqo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZQv0WQAKCRDj7w1vZxhR xQqfAP92TE+LyR9XfDnY8TOYQ2btb0vi9F8eVCt96OBDOKAmwwD9GadGgQONJhi2 9eLzxM9+iTWsgK3rnNX7P7WK0mfI/w0= =v3YY -----END PGP SIGNATURE----- --2ociu33dmyngsoqo--