lkml.org 
[lkml]   [2026]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 1/4] iio: accel: bmc150: convert to guard(mutex)
On Mon, Mar 9, 2026 at 7:54 PM Rajveer Chaudhari
<rajveer.chaudhari.linux@gmail.com> wrote:

> @@ -1485,7 +1488,7 @@ static int bmc150_accel_buffer_postenable(struct iio_dev *indio_dev)
> if (iio_device_get_current_mode(indio_dev) == INDIO_BUFFER_TRIGGERED)
> return 0;
>
> - mutex_lock(&data->mutex);
> + guard(mutex)(&data->mutex);
>
> if (!data->watermark)
> goto out;

I am sorry I accidentally forgot to clean up goto and mutex_unlock in
bmc150_accel_buffer_postenable().
I will fix it in V2.

Thankyou,
Rajveer

\
 
 \ /
  Last update: 2026-03-09 15:43    [W:0.145 / U:26.042 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog