[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161114203208.GA4207@katana>
Date: Mon, 14 Nov 2016 23:27:07 +0100
From: Wolfram Sang <wsa@...-dreams.de>
To: Kieran Bingham <kieran@...uared.org.uk>
Cc: Lee Jones <lee.jones@...aro.org>, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org,
Javier Martinez Canillas <javier@....samsung.com>,
sameo@...ux.intel.com
Subject: Re: [PATCHv7 08/11] i2c: match vendorless strings on the internal
string length
On Mon, Nov 07, 2016 at 12:47:43PM +0000, Kieran Bingham wrote:
> If a user provides a shortened string to match a device to the sysfs i2c
> interface it will match on the first string that contains that string
> prefix.
>
> for example:
> echo a 0x68 > /sys/bus/i2c/devices/i2c-2/new_device
> will match as3711, as3722, and ak8975 incorrectly.
>
> Correct this by using sysfs_streq to match the string exactly
>
> Signed-off-by: Kieran Bingham <kieran@...gham.xyz>
Any objections that I squash this directly into patch 2? It is more like
a bugfix, no?
Download attachment "signature.asc" of type "application/pgp-signature" (802 bytes)
Powered by blists - more mailing lists