linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "H. Nikolaus Schaller" <hns@goldelico.com>
To: Bastien Nocera <hadess@hadess.net>
Cc: Jonathan Cameron <jic23@kernel.org>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Eric Piel <eric.piel@tremplin-utc.net>,
	linux-input@vger.kernel.org, letux-kernel@openphoenux.org,
	kernel@pyra-handheld.com, Hartmut Knaack <knaack.h@gmx.de>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
	linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org
Subject: Re: [RFC v2] iio: input-bridge: optionally bridge iio acceleometers to create a /dev/input interface
Date: Fri, 10 May 2019 12:06:03 +0200	[thread overview]
Message-ID: <4C600F37-33E3-4C3D-B7D1-BBB85D5A2195@goldelico.com> (raw)
In-Reply-To: <4a77d53966d117bc5c7ff2836634d8591633f4f5.camel@hadess.net>


> Am 10.05.2019 um 11:35 schrieb Bastien Nocera <hadess@hadess.net>:
> 
> On Fri, 2019-05-10 at 11:33 +0200, H. Nikolaus Schaller wrote:
>>> 
> <snip>
>> It does through "Input device name:" starting with "iio-bridge:" as
>> you can see in the commit message of [RFC v3]:
> 
> This makes it ABI, right?

The "Input device name:" is already ABI of the input system (although I guess the string is
built into the evtest tool). I think there are also /sys nodes which carry the same information.

But yes, if someone changes the "iio-bridge:" prefix in kernel code it breaks a user space lib
making use of it:

+	poll_dev->input->name = kasprintf(GFP_KERNEL, "iio-bridge: %s",
+						    indio_dev->name);
+	poll_dev->input->phys = kasprintf(GFP_KERNEL, "iio:device%d",
+						    indio_dev->id);

This type of exporting names seems to be quite common. E.g. "mmcblk0p1" which may end up
in some /etc/fstab.

> 
> Big fat warnings around the code that declares it would be appreciated.

Ok.




      reply	other threads:[~2019-05-10 10:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-31 10:09 [RFC v2] iio: input-bridge: optionally bridge iio acceleometers to create a /dev/input interface H. Nikolaus Schaller
2019-04-07 12:30 ` Jonathan Cameron
     [not found]   ` <CD44AFA0-6676-4842-9C80-61BB363DD556@goldelico.com>
2019-04-14 11:40     ` Jonathan Cameron
2019-04-14 16:26       ` Roderick Colenbrander
2019-05-10  8:57         ` Bastien Nocera
2019-05-11 18:47           ` Roderick Colenbrander
     [not found]       ` <CD6219BE-61FF-4C38-9532-054C60A77F89@goldelico.com>
2019-04-22 14:20         ` Jonathan Cameron
2019-05-09  9:09           ` H. Nikolaus Schaller
2019-05-09 17:02             ` [Letux-kernel] " H. Nikolaus Schaller
2019-05-11 11:05               ` Jonathan Cameron
     [not found]                 ` <CCD87A8D-FF65-4681-964B-22870716D655@goldelico.com>
2019-06-08 10:52                   ` Jonathan Cameron
2019-05-11 10:54             ` Jonathan Cameron
2019-05-10  8:57           ` Bastien Nocera
2019-05-10  9:33             ` H. Nikolaus Schaller
2019-05-10  9:35               ` Bastien Nocera
2019-05-10 10:06                 ` H. Nikolaus Schaller [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=4C600F37-33E3-4C3D-B7D1-BBB85D5A2195@goldelico.com \
    --to=hns@goldelico.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=eric.piel@tremplin-utc.net \
    --cc=hadess@hadess.net \
    --cc=jic23@kernel.org \
    --cc=kernel@pyra-handheld.com \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=letux-kernel@openphoenux.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pmeerw@pmeerw.net \
    /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).