]> git.baikalelectronics.ru Git - kernel.git/commit
iio: pressure: dps310: Refactor startup procedure
authorEddie James <eajames@linux.ibm.com>
Thu, 15 Sep 2022 19:57:18 +0000 (14:57 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 21 Sep 2022 17:42:55 +0000 (18:42 +0100)
commit5c5c44b303611a1d11961afb4b5cb1596f4b3158
treeb2efd9dc3102d55947f20b87cc0d3be7e53b01aa
parentb60451698e0fe47278a7d177dcb8f07826b135ea
iio: pressure: dps310: Refactor startup procedure

Move the startup procedure into a function, and correct a missing
check on the return code for writing the PRS_CFG register.

Cc: <stable@vger.kernel.org>
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220915195719.136812-2-eajames@linux.ibm.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/dps310.c