[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <60096b9b-37ce-4b08-a519-3c607de71c0d@gmail.com>
Date: Fri, 22 Nov 2024 07:41:12 +0100
From: Javier Carrasco <javier.carrasco.cruz@...il.com>
To: Matti Vaittinen <mazziesaccount@...il.com>,
Matti Vaittinen <matti.vaittinen@...rohmeurope.com>
Cc: Jonathan Cameron <jic23@...nel.org>, Lars-Peter Clausen
<lars@...afoo.de>, linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] iio: bm1390: simplify using guard(mutex)
On 21/11/2024 14:05, Matti Vaittinen wrote:
> The BM1390 uses mutex for protecting the fifo read sequence. The clean-up
> for a few of the functions can be slightly simplified by removing the
> goto-based error handling/unlocking and by utilizing the guard(mutex)
> scoped mutex handling instead.
>
> Simplify driver by using the scoped mutexes.
>
> Signed-off-by: Matti Vaittinen <mazziesaccount@...il.com>
> ---
> drivers/iio/pressure/rohm-bm1390.c | 78 ++++++++++++------------------
> 1 file changed, 30 insertions(+), 48 deletions(-)
>
Reviewed-by: Javier Carrasco <javier.carrasco.cruz@...il.com>
Powered by blists - more mailing lists