Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp623256ybt; Wed, 24 Jun 2020 07:22:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMXeggcDfZ/7hrA4X7H+kUXE3ZykkTLSdgAKbaw6xu1nLHU+qI8yEXXPdlsuGC+0At3EZo X-Received: by 2002:a50:f983:: with SMTP id q3mr28373504edn.259.1593008525884; Wed, 24 Jun 2020 07:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593008525; cv=none; d=google.com; s=arc-20160816; b=aYJyXUVgE5EBl3bF/CrmhcspxfnDffzGuQ+RD2oTTOODksTp+zsILNQ7R1DqyUJ1kp yyjJo6tZu5/vB5ode1tN7vwrPil5Glq4biF3HSqvfJASFIPkiAlZzROaZV3VDjIj55ek tRjNnMA6ecAs8pW/iO2NbeQvgAE0e2usx+9yI8i4GBehsVCSn6V2RNnuR+VrtBQuMmUv ehn7igIQC8PvZtyYfpSNrp+BDIi6q6jlpcx4qIFaYcdHiveI1mQ9KneF6ZsxQzN5tL2e ACZviYaI5OgRfBE6DCe7uk2iHZnzz60ewcM3tHRnfxvtvTgaipf5zE654R35hv1P/yDZ lNvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VGBn1ADNKRi6CmnrcT87PSE08/xMC9Atdj5KJQ7pe1A=; b=iOWYfIipfyElGNEVYA4Q5YPEQu29FBlo8+PL0hrL1cPFZdsMldMyn3g+xyDIVhQwgk 4f/+rQ//5Rsd3W+g+nSmg0jT0NDoPrzktw+X6PEj7lzyiVRoz0Htvz6fkpdGnBl9plyh sNmBnVemfNDyAteHbBX4lOH/Se6l2+Q/+HNwaoctJ2s152cmA8wuPhfEQCkvfarjsLbJ 4ohQw6fDjPx/qtM3Sdyswat7NGewHsqDnUlFlgBOcoxQ4N7e0MhX6ELE2MPjhU0hiWH2 K98SDym9seIz/mQ/v0ALuexIHfwf5MXZ7hj4pPzVBezFBItPppPaSHzoW6urh3SffMwn sKMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=FLM8duue; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du7si17201003ejc.341.2020.06.24.07.21.40; Wed, 24 Jun 2020 07:22:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=FLM8duue; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389159AbgFXOVB (ORCPT + 99 others); Wed, 24 Jun 2020 10:21:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388115AbgFXOVA (ORCPT ); Wed, 24 Jun 2020 10:21:00 -0400 Received: from mail-qv1-xf41.google.com (mail-qv1-xf41.google.com [IPv6:2607:f8b0:4864:20::f41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 841B0C061573 for ; Wed, 24 Jun 2020 07:21:00 -0700 (PDT) Received: by mail-qv1-xf41.google.com with SMTP id cv17so1075696qvb.13 for ; Wed, 24 Jun 2020 07:21:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=VGBn1ADNKRi6CmnrcT87PSE08/xMC9Atdj5KJQ7pe1A=; b=FLM8duueCnajG8bhEBr7syi968C1c9y7nKMIcq0a+Fad+EZ3DMrFka4TeqrC2oaM00 5BGk+4cPv35d0oYGtlkYD7XXcHaujpjT0xdQGyxWOksFlli/VjH9s/VUS/HSL8UKYQ3q zKgPSy4/TtdjpTAjFAePrMz7vBKOrGJRD+6P7ANUidpdaV2Hc/F3vxXNWiW1x7ONA/b7 CrJScLVCKfWyJifIuThgJzgL4KUJyFZeJKv4ChQpIx9Q5cbrN2qKpyFN9oEqJvA2sU2i Anxf3PgCJ1J7ypPOGuSZOwEQGz4MHQ1Moo6ahWQX6G/TT3NI4fPjvlpuugSuLELdbVXl mzxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=VGBn1ADNKRi6CmnrcT87PSE08/xMC9Atdj5KJQ7pe1A=; b=rN9BsBpCNHyK0RgpEPNAPgzTPhhu9I5AfJU6i6jqLTUnfYOVn0RmU+mcMM/pg7wS7A r5zqP9xrPQ0aN08tmMHP77t5ocY9B4ZAByisPhoTkbGdezbjGlj7e4nlHL2FHUie0SH9 nKzavx21f+MiQyEbmiyoePWFnb+w9+wEKg9l1sVxE3dFW+fNN9G7VzReeaSqw4GIdCdy 7yrCt0C3Vm9fuU9HZndSJvxyOO6/8+KmDvaFaEIjDlS0qFCHd035TXiOkFIrrRpkat+v 7t416QCaFj0X1GKD+BRAl3lHFftdsPfDOMFQ+cWs2W3mncHsCpMU8py7Jv4WkpAD+EJ9 L2ww== X-Gm-Message-State: AOAM530A0V+gFVGIVKXkC3GKdceLoRPCe7KdF+lOEs4iXnv+KtyqHNvQ y7RXeW3u2Pcc4VMGc+c9hnj+SQF8Se6WJM800r1weQ== X-Received: by 2002:ad4:55d0:: with SMTP id bt16mr30658208qvb.76.1593008459748; Wed, 24 Jun 2020 07:20:59 -0700 (PDT) MIME-Version: 1.0 References: <20200623040107.22270-1-warthog618@gmail.com> <20200623040107.22270-10-warthog618@gmail.com> <20200624141912.GB7569@sol> In-Reply-To: <20200624141912.GB7569@sol> From: Bartosz Golaszewski Date: Wed, 24 Jun 2020 16:20:49 +0200 Message-ID: Subject: Re: [PATCH 09/22] gpiolib: cdev: rename priv to gcdev To: Kent Gibson Cc: LKML , linux-gpio , Linus Walleij Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =C5=9Br., 24 cze 2020 o 16:19 Kent Gibson napisa=C5= =82(a): > > On Wed, Jun 24, 2020 at 04:04:09PM +0200, Bartosz Golaszewski wrote: > > wt., 23 cze 2020 o 06:02 Kent Gibson napisa=C5= =82(a): > > > > > > Rename priv to gcdev to improve readability. > > > > > > The name "priv" indicates that the object is pointed to by > > > file->private_data, not what the object is actually is. > > > It is always used to point to a struct gpio_chardev_data so renaming > > > it to gcdev seemed as good as anything, and certainly clearer than "p= riv". > > > > > > Signed-off-by: Kent Gibson > > > > > > > Ugh now it's gcdev and gdev everywhere and it doesn't really make it > > more readable. Maybe chardev_data or cdev_data? > > > > Agreed, it isn't ideal visually, but is at least more unique than priv. > Linus was going for short names recently (e.g. gc for gpiochip), so I was > going for something short. > > And I try avoid names ending in _data or _state or similar where they > don't really add anything. > > Would chardev or gchardev work for you? > Yes, chardev is fine. Even cdev is fine for me: gdev vs gcdev is confusing but gdev vs cdev looks better IMO. Bart