]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:12 +0000 (13:22 +0200)
commita32e80014707de5d28c811f39d6656de80595229
treea53dda4ef922b6f8e8a4d84f7731ccfe663bfe16
parente95ef4c36c5d243f15eac9c75ea0a702999c7f1a
iio: pressure: dps310: Refactor startup procedure

commit 337110822d50d14ec93a4debe4603d779747acdf upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/pressure/dps310.c