From: Hans de Goede <hdegoede@redhat.com>
To: Ian Campbell <ijc@hellion.org.uk>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Rob Herring <robh+dt@kernel.org>,
Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: devicetree <devicetree@vger.kernel.org>,
linux-arm-kernel@lists.infradead.org,
linux-input@vger.kernel.org
Subject: Re: [PATCH 2/3] devicetree: bindings: use input-event-codes.h for evdev codes
Date: Wed, 16 Sep 2015 10:43:23 -0400 [thread overview]
Message-ID: <55F9800B.70200@redhat.com> (raw)
In-Reply-To: <1442414443.18856.110.camel@hellion.org.uk>
Hi,
On 09/16/2015 10:40 AM, Ian Campbell wrote:
> On Wed, 2015-09-16 at 10:27 -0400, Hans de Goede wrote:
>> Hi,
>>
>> On 09/15/2015 07:24 AM, Ian Campbell wrote:
>>> On Sat, 2015-09-12 at 15:26 +0200, Hans de Goede wrote:
>>>> Add a symlink to uapi/linux/input-event-codes.h, and include that
>>>> instead
>>>> of (re)defining all the evdev type and code values in
>>>> dt-bindings/input/input.h. This way we do not need to keep all the
>>>> event codes synced manually.
>>>>
>>>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>>>> ---
>>>> include/dt-bindings/input/input-event-codes.h | 1 +
>>>> include/dt-bindings/input/input.h | 510 +--------------
>>>> -----
>>>> ------
>>>> 2 files changed, 2 insertions(+), 509 deletions(-)
>>>> create mode 120000 include/dt-bindings/input/input-event-codes.h
>>>>
>>>> diff --git a/include/dt-bindings/input/input-event-codes.h
>>>> b/include/dt
>>>> -bindings/input/input-event-codes.h
>>>> new file mode 120000
>>>> index 0000000..693bbcd
>>>> --- /dev/null
>>>> +++ b/include/dt-bindings/input/input-event-codes.h
>>>> @@ -0,0 +1 @@
>>>> +../../uapi/linux/input-event-codes.h
>>>> \ No newline at end of file
>>>
>>> Hrm, I think this is going to cause trouble for the split DT repository
>>> at
>>> https://git.kernel.org/cgit/linux/kernel/git/devicetree/devicetree-reba
>>> sing.git/
>>>
>>> Since ../../ == include in both trees I think I can make it work by
>>> including include/uapi/linux in the conversion, either wholesale
>>> (easiest)
>>> or partially (potentially cleaner).
>>>
>>> Any opinions on that?
>>
>> The intend of the symlink was that the conversion script would copy the target,
>> rather then follow the symlink. This sorta assumes that there are will be not
>> symlinks under dt-bindings which link to files inside dt-bindings and thus
>> should be preserved as symlinks.
>>
>> If the copy done in the script will follow the symlink then nothing should
>> really change for the split DT repo.
>
> Interesting idea. I'll see if I can make the conversion routine do that.
>
> TBH I have a horrid feeling that this is going to be beyond git rewrite
> -branch, at least in the mode it is used in today.
>
>>> In principal I ought to regenerate the tree from scratch such that
>>> include/uapi/linux was "always" there and has history but I think we
>>> can
>>> live with it just appearing at some point in time wen the conversion
>>> script
>>> was updated?
>>>
>>> AIUI these values are required to only be used with properties whose
>>> names
>>> are of the form "linux,*", otherwise there would be strong complaints
>>> about
>>> include Linux uapi stuff into a generic device-tree binding.
>>
>> Correct, these values are only for linux,* properties, which is why I
>> initially put them in a file named dt-bindings/input/linux-event-codes.h
>
> I think that would be a better name for the symlink (but not the target of
> that symlink) and usage in the .dts*, given it's (hopefully) going to turn
> into a regular file in the exported repo.
Ok I can fix this in a next version of the patch-set (once we've figured
out how to deal with all this exactly).
Regards,
Hans
next prev parent reply other threads:[~2015-09-16 14:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-12 13:26 [PATCH 0/3] input / dt-bindings: Unify defining of evdev codes Hans de Goede
2015-09-12 13:26 ` [PATCH 1/3] input: Add an input-event-codes header file Hans de Goede
2015-09-12 13:26 ` [PATCH 2/3] devicetree: bindings: use input-event-codes.h for evdev codes Hans de Goede
2015-09-15 11:24 ` Ian Campbell
2015-09-16 14:27 ` Hans de Goede
2015-09-16 14:40 ` Ian Campbell
2015-09-16 14:43 ` Hans de Goede [this message]
2015-09-17 11:00 ` Ian Campbell
[not found] ` <1442487617.18856.177.camel-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>
2015-09-17 19:35 ` Hans de Goede
2015-09-17 20:00 ` Rob Herring
2015-09-17 20:04 ` Hans de Goede
[not found] ` <1442064372-3030-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-12 13:26 ` [PATCH 3/3] ARM: dts: sun4i: inet9f-rev03: Add support for game buttons / joysticks Hans de Goede
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=55F9800B.70200@redhat.com \
--to=hdegoede@redhat.com \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=ijc@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=maxime.ripard@free-electrons.com \
--cc=robh+dt@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).