]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: pca9685: Add error messages for failed regmap calls
authorClemens Gruber <clemens.gruber@pqgruber.com>
Fri, 7 May 2021 13:18:45 +0000 (15:18 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 4 Jun 2021 09:43:54 +0000 (11:43 +0200)
commit4750bfa1dd61d1e226ae807ac1b3ab49bcd6fdc1
tree6a7d9e13bc9eae6745f102f92b9867eb0778a95a
parent7121b859f6354de1b8a131e92bc11518a373e0b2
pwm: pca9685: Add error messages for failed regmap calls

Regmap operations can fail if the underlying subsystem is not working
properly (e.g. hogged I2C bus, etc.)
As this is useful information for the user, print an error message if it
happens.
Let probe fail if the first regmap_read or the first regmap_write fails.

Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-pca9685.c