From: Stephen Warren <swarren@wwwdotorg.org>
To: "AnilKumar, Chimata" <anilkumar@ti.com>
Cc: "dmitry.torokhov@gmail.com" <dmitry.torokhov@gmail.com>,
"grant.likely@secretlab.ca" <grant.likely@secretlab.ca>,
"devicetree-discuss@lists.ozlabs.org"
<devicetree-discuss@lists.ozlabs.org>,
"dgdunix@gmail.com" <dgdunix@gmail.com>,
"rob.herring@calxeda.com" <rob.herring@calxeda.com>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>
Subject: Re: [PATCH v2] Input: matrix-keypad - Add device tree support
Date: Fri, 02 Nov 2012 09:03:07 -0600 [thread overview]
Message-ID: <5093E0AB.7090308@wwwdotorg.org> (raw)
In-Reply-To: <331ABD5ECB02734CA317220B2BBEABC13EA5E80B@DBDE01.ent.ti.com>
On 11/02/2012 02:21 AM, AnilKumar, Chimata wrote:
> On Wed, Oct 31, 2012 at 21:00:59, Stephen Warren wrote:
>> On 10/31/2012 05:54 AM, AnilKumar Ch wrote:
>>> Add device tree support to matrix keypad driver and usage details
>>> are added to device tree documentation. Driver was tested on AM335x
>>> EVM.
>>
>>> diff --git a/Documentation/devicetree/bindings/input/matrix-keypad.txt b/Documentation/devicetree/bindings/input/matrix-keypad.txt
>>> new file mode 100644
>>
>>> +- compatible: Should be "gpio-matix-keypad"
>>
>> There's a typo there.
>>
>> Given that compatible value, shouldn't the file be named
>> gpio-matrix-keypad.txt then?
>
> Stephen,
>
> Thanks for the comments.
>
> I agree and I have same thing in my mind but the driver name
> is matrix-keypad.c. And I think we have to change the driver
> file names as well. (drivers/../matrix_keypad.c, linux/input/
> matrix_keypad.h).
I don't think there's any requirement that the Linux driver source
filename needs to match the DT binding compatible value in any way.
Given the bindings are OS-agnostic, naming the binding file based on the
compatible value seems better than naming the binding based on the Linux
driver name when there's a discrepancy. I see you've renamed the file in
V3, so everything's fine.
prev parent reply other threads:[~2012-11-02 15:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-31 11:54 [PATCH v2] Input: matrix-keypad - Add device tree support AnilKumar Ch
2012-10-31 15:30 ` Stephen Warren
2012-11-02 8:21 ` AnilKumar, Chimata
2012-11-02 15:03 ` Stephen Warren [this message]
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=5093E0AB.7090308@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=anilkumar@ti.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=dgdunix@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=grant.likely@secretlab.ca \
--cc=linux-input@vger.kernel.org \
--cc=rob.herring@calxeda.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.