lkml.org 
[lkml]   [2014]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 1/5] hwmon: ina2xx: bail-out from ina2xx_probe() in case of configuration errors
    On 11/27/2014 01:59 AM, Bartosz Golaszewski wrote:
    > The return value of i2c_smbus_write_word_swapped() isn't checked in
    > ina2xx_probe(). This leads to devices being registered even if they cannot
    > be physically detected (e.g. device is not powered-up at boot-time).
    >
    > Even after restoring power to such device, it is left unconfigured as the
    > configuration has never been actually written to the register.
    >
    > Error out in case of write errors in probe and notify the user.
    >
    > Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>

    Applied to -next.

    Thanks,
    Guenter




    \
     
     \ /
      Last update: 2014-11-30 21:21    [W:3.822 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site