From: Masahiro Yamada <yamada.masahiro@socionext.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Alexandre Courbot <gnurou@gmail.com>
Subject: Re: [PATCH v3] gpio: UniPhier: add driver for UniPhier GPIO controller
Date: Fri, 20 May 2016 13:30:10 +0900 [thread overview]
Message-ID: <CAK7LNAQcfrvuG6fD+gN2Ojq4wzCSNa=qpr5kh2QSFJZMCA2UaQ@mail.gmail.com> (raw)
In-Reply-To: <CAK7LNAQH+Ge61+MJo2rLmjCBJRnYviT3LyCo0nrOPRQL+RtK2g@mail.gmail.com>
Hi Linus,
2015-07-16 16:48 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
> Hi Linus,
>
> OK, I will do it in v4.
I has been away from my GPIO driver upstreaming
for a long time for some reason.
I sent v3 ten months ago.
http://patchwork.ozlabs.org/patch/494860/
In the meantime, there have been various updates
in the GPIO frame-work.
So, I'd like to know the recommended driver coding style
based on 4.7-rc1.
Diving into the git-log so far, I came up the following list:
[1] The "dev" member of gpiochip was renamed to "parent"
[2] The most recommended register function is now
devm_gpiochip_add_data()
[3] Pass the driver private data to the
3rd argument of devm_gpiochip_add_data().
[4] Do not use container_of() to covert
from gpiochip to driver private data.
Instead, gpiochip_get_data() should be used.
(I used of_mm_gpio_chip in v3,
but I needed to use container_of() to
convert from gpiochip to of_mm_gpio_chip.
I am wondering if you are happy with it or not.)
[5] gpiochip.owner is being deprecated.
So, platform drivers need not set
"gpiochip.owner = THIS_MODULE".
Correct?
Is there anything else missing?
Any advice is appreciated.
--
Best Regards
Masahiro Yamada
next prev parent reply other threads:[~2016-05-20 4:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-14 2:43 [PATCH v3] gpio: UniPhier: add driver for UniPhier GPIO controller Masahiro Yamada
2015-07-15 14:15 ` Linus Walleij
2015-07-16 3:44 ` Masahiro Yamada
2015-07-16 7:07 ` Linus Walleij
2015-07-16 7:35 ` Masahiro Yamada
2015-07-16 7:42 ` Linus Walleij
2015-07-16 7:48 ` Masahiro Yamada
2016-05-20 4:30 ` Masahiro Yamada [this message]
2016-05-26 9:06 ` Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAK7LNAQcfrvuG6fD+gN2Ojq4wzCSNa=qpr5kh2QSFJZMCA2UaQ@mail.gmail.com' \
--to=yamada.masahiro@socionext.com \
--cc=gnurou@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).