Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp622534ybt; Wed, 24 Jun 2020 07:21:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQJKlf7hn4LNfUfa/+jLutJ5IzN9RLmj3C5Tg9zK9AYiNbsG4F8ow21HT3PncKcQWNZ2dJ X-Received: by 2002:aa7:d985:: with SMTP id u5mr28548290eds.160.1593008466659; Wed, 24 Jun 2020 07:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593008466; cv=none; d=google.com; s=arc-20160816; b=jXIHw4zPIUTNxN3/n3nqkKDdLRLLRiXPwTpjeJVpaXlKbF8V4eBeshMy1NMKkzO18/ 3uvp5MGAECnobFrsr+++8a8pRQR0v00lZY0+rMcWIrbCL8Xbew2I7uefBmqnnURgFK3B KLGN1wm8+8suqcuaABHy2gehAv3mTpevAm2NRqcXe4arOIsQ6Fm4roPVYlNC85H4/Mdi RDckQQodwQJuYzbF6x0IBXjK73AhWmJcyHENTt69IcVsa7I8EmG+PrebzzZbpBE6wqv7 vfue9s6VJeJw3XGIlfbWDeeQ7/i352ZAvb1aA5cF5t6N8LHbVRuB1U43jySCFMu48v3+ xsCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hKkOlSil9sHYk/GFk5A0jOfZma/H2TL7bZJKmneZ+Co=; b=HXtlxLyXq34sRX+4VzYWVakjNWiH3ii8APwuDmUrk6sxMWWImVNc2vS3t3xSFh8H36 T5l/Q9VNLDHN4zTpH0h7zdTZENb+Hsl7GEAg0L/IKjOSzIVL09cgYFW2mUyafs0zk0DW TrdK4HD+huCga3AMx8vxQd2JICfe8BCtSohh11bXjj508NBgT5cXvMfQe5qNmDbLK28u QSoo2NhJzQVOwdmnmSt08FudZ0CTN1aAHPtT2QC1Yd1sYzHByLkescAAUoxaRcQ3aquX F0GnncM3ya/5xngyQFfJF9jYOqoRGh+grg7lCPV/vlV/xKbdyaqiOzD2YArmEiBhOYnK rvoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KvgCFQYv; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si14065063edq.596.2020.06.24.07.20.43; Wed, 24 Jun 2020 07:21:06 -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=@gmail.com header.s=20161025 header.b=KvgCFQYv; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391213AbgFXOTW (ORCPT + 99 others); Wed, 24 Jun 2020 10:19:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391194AbgFXOTT (ORCPT ); Wed, 24 Jun 2020 10:19:19 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F175CC0613ED; Wed, 24 Jun 2020 07:19:18 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id g17so1101608plq.12; Wed, 24 Jun 2020 07:19:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=hKkOlSil9sHYk/GFk5A0jOfZma/H2TL7bZJKmneZ+Co=; b=KvgCFQYv6ZAYZmcyQI0BM3TdJUCc1/KrkgPVGjPcx7ApMqYlKxWH+o6H8/eFOTLA0d yoTtIZxwjaUZLh3uMnLsTepvdJOAVaCCqdx5qeqxUO5smEH/qZJLzxDimY6fg0a0NNsk tAHctNvR41JiSIsfWw5ttpUIDtOs9KOeR+IogKrFsuI2i4m/pgXjUTZncm+izzqyY+Nk NMK0bP31oFT+8wgrc4zlC1c49LfopUU4oRcminHmj5uIlR1EC2HfFE6jgBMB6F9YnHxd mAhMFK7WNtwpe5apulWAgqf1bjdXY3Pc3zQzbxo0trU7W6tuOe5AcrDoibmzH73zhd8E 8/ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=hKkOlSil9sHYk/GFk5A0jOfZma/H2TL7bZJKmneZ+Co=; b=ERii7EhepnGrBo4k8mO83XEpDawSBfz6LDvFzHhX0817l7zYvQaOMhJpPggBNqvjAM jjtP0FFeBcI3XEl5fgEV2etb+X23CbuL/yml/AOyPn4jPwteEBAIiTHvSDhwrVFD3Fhq mSHaaYYbEQS/BFDUhwUO4istJkLJB4h8O1va6jH21P32hxi5fLlStZnOYuJpZzaQTzMm bjTYFnlgio4fxZBa3y+z349lK5+YxG7S4UnanFB8HqD0va1aZy7gHuevu1lx0/D30NWV JxzhsaCdtH3WtJ32L24+0mvg7gBjTQ2zqhLsbTqbh0ihzvi6ms1oYrkh69R/r0gBxiD7 IG5w== X-Gm-Message-State: AOAM533KSKBN7dwag1tr5VutZz4FzwBMSj6rMDqyA6X3du/lKrMpCypE oecUmQ4QM8dwABmSt24rR2IcPMePj5s= X-Received: by 2002:a17:90a:1117:: with SMTP id d23mr29014164pja.136.1593008358437; Wed, 24 Jun 2020 07:19:18 -0700 (PDT) Received: from sol (220-235-99-174.dyn.iinet.net.au. [220.235.99.174]) by smtp.gmail.com with ESMTPSA id l195sm20939094pfd.18.2020.06.24.07.19.15 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jun 2020 07:19:17 -0700 (PDT) Date: Wed, 24 Jun 2020 22:19:12 +0800 From: Kent Gibson To: Bartosz Golaszewski Cc: LKML , linux-gpio , Linus Walleij Subject: Re: [PATCH 09/22] gpiolib: cdev: rename priv to gcdev Message-ID: <20200624141912.GB7569@sol> References: <20200623040107.22270-1-warthog618@gmail.com> <20200623040107.22270-10-warthog618@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 24, 2020 at 04:04:09PM +0200, Bartosz Golaszewski wrote: > wt., 23 cze 2020 o 06:02 Kent Gibson napisaƂ(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 "priv". > > > > 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? Cheers, Kent.