]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: dac: ds4424: ratelimit read errors and use device context
authorOleksij Rempel <o.rempel@pengutronix.de>
Tue, 10 Feb 2026 13:51:00 +0000 (14:51 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 22 Mar 2026 12:38:30 +0000 (12:38 +0000)
commitc071adeb72739306bf2960a8f703206979c65196
treea03b412336650c12a4731b7d51bd4f9e315b0323
parenta718013647dcd5aca14c9a8856e1dab694e846ae
iio: dac: ds4424: ratelimit read errors and use device context

Replace pr_err() with dev_err_ratelimited() in the RAW read path to avoid
log spam on repeated I2C failures and to include the device context.

Use %pe to print errno names for faster debugging. Use the parent
device context to identify the physical hardware causing the error.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ds4424.c