Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1522151

Re: [PATCHv7 08/11] i2c: match vendorless strings on the internal string length

From Wolfram Sang <wsa@the-dreams.de>
Newsgroups linux.kernel
Subject Re: [PATCHv7 08/11] i2c: match vendorless strings on the internal string length
Date 2016-11-14 23:40 +0100
Message-ID <sDy4W-4EE-5@gated-at.bofh.it> (permalink)
References <sARx7-3aL-3@gated-at.bofh.it> <sARx8-3aL-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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@bingham.xyz>

Any objections that I squash this directly into patch 2? It is more like
a bugfix, no?

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCHv7 08/11] i2c: match vendorless strings on the internal  string length Wolfram Sang <wsa@the-dreams.de> - 2016-11-14 23:40 +0100
  Re: [PATCHv7 08/11] i2c: match vendorless strings on the internal  string length Kieran Bingham <kieran@ksquared.org.uk> - 2016-11-15 10:50 +0100

csiph-web