[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aLbqJfGiHWNhXfgx@smile.fi.intel.com>
Date: Tue, 2 Sep 2025 15:59:17 +0300
From: Andy Shevchenko <andriy.shevchenko@...el.com>
To: Akshay Jindal <akshayaj.lkd@...il.com>
Cc: anshulusr@...il.com, jic23@...nel.org, dlechner@...libre.com,
nuno.sa@...log.com, andy@...nel.org, shuah@...nel.org,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4] iio: light: ltr390: Implement runtime PM support
On Tue, Sep 02, 2025 at 03:57:24PM +0300, Andy Shevchenko wrote:
> On Tue, Sep 02, 2025 at 12:12:36AM +0530, Akshay Jindal wrote:
...
> > + if (regmap_clear_bits(data->regmap, LTR390_INT_CFG,
> > + LTR390_LS_INT_EN) < 0)
>
> Wrong indentation, hard to read line, either one line, or do better. Actually
> why not assign it to ret? The above not only simple style issue, but also makes
> readability much harder as the semantics of '0' is completely hidden. This style
> is discouraged.
Noticing that this is existing style I recommend to have a precursor patch to
fix this and any other place like this first.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists