lkml.org 
[lkml]   [2016]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCHv7 08/11] i2c: match vendorless strings on the internal string length
    From
    Date
    Hello Kieran,

    On 11/07/2016 09:47 AM, 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>
    >

    Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>

    Best regards,
    --
    Javier Martinez Canillas
    Open Source Group
    Samsung Research America

    \
     
     \ /
      Last update: 2016-11-07 20:23    [W:4.109 / U:0.312 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site