iio: pressure: dps310: consistently check return value of `regmap_read`
authorThomas Haemmerle <thomas.haemmerle@leica-geosystems.com>
Mon, 15 Apr 2024 10:50:29 +0000 (12:50 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 20 Apr 2024 13:53:02 +0000 (14:53 +0100)
commitc046bb5d9512e3c00b0e17c581f50bbb6c641d58
tree6ec6fce140cde8a399b529de904db615024afe74
parentb8189beb2c87cb7aae114734baf19d2bd33342ce
iio: pressure: dps310: consistently check return value of `regmap_read`

Align the check of return values `regmap_read` so that it's consistent
across this driver code.

Signed-off-by: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com>
Link: https://lore.kernel.org/r/20240415105030.1161770-4-thomas.haemmerle@leica-geosystems.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/dps310.c