• Jean Delvare's avatar
    [PATCH] I2C: Kill i2c_client.id (2/5) · 24e36cfe
    Jean Delvare authored
    (2/5) Stop using i2c_client.id in media/video drivers.
    
    Affected drivers:
    * adv7170
    * adv7175
    * bt819
    * bt856
    * bttv
    * cx88
    * ovcamchip
    * saa5246a
    * saa5249
    * saa7110
    * saa7111
    * saa7114
    * saa7134
    * saa7185
    * tda7432
    * tda9840
    * tda9875
    * tea6415c
    * tea6420
    * tuner-3036
    * vpx3220
    
    Most drivers here would include the id as part of their i2c client name
    (e.g. adv7170[0]). This looks more like an habit than something really
    needed, so I replaced the various printf by strlcpy, which should be
    slightly faster. As said earlier, clients can be differenciated thanks
    to their bus id and address if needed, so I don't think that including
    this information in the client name is wise anyway.
    
    Other drivers would either set the id to -1 or to a unique value but
    then never use it. These drivers are unaffected by the changes.
    Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    24e36cfe
tda9875.c 12.1 KB