Re: [PATCH v8 09/12] iio: ssp_sensors: use guard() to release mutexes

From: Andy Shevchenko

Date: Sun May 17 2026 - 06:43:04 EST


On Fri, May 15, 2026 at 11:10:14PM +0530, Sanjay Chitroda wrote:

> Replace explicit mutex_lock() and mutex_unlock() with the guard() macro
> for cleaner and safer mutex handling.

...

> #include "ssp.h"
> +#include <linux/cleanup.h>

Generic headers comes earlier, the more custom they are the lower in the list
they are being placed.

--
With Best Regards,
Andy Shevchenko