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)
commit79dd354fe1769ebec695dacfee007eafb1538d0c
tree6a7d9e13bc9eae6745f102f92b9867eb0778a95a
parent6d6e7050276d40b5de97aa950d5d71057f2e2a25
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