Re: [PATCH 6/9] thermal/core: Protect hwmon accesses to thermal operations with thermal zone mutex

From: Rafael J. Wysocki
Date: Thu Nov 10 2022 - 09:25:17 EST


On Thu, Nov 10, 2022 at 3:21 PM Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
>
> On Wed, Nov 09, 2022 at 08:19:13PM +0100, Rafael J. Wysocki wrote:
> > On Mon, Oct 17, 2022 at 3:09 PM Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
> [ ... ]
> >
> > And I wouldn't change the code below (the ternary operator is out of
> > fashion in particular).
> >
>
> I tried to introduce some consistency; the ternary operator is used
> in some of the existing thermal code. Guess I went the wrong direction.
> Never mind; I don't have a strong opinion either way.
> I updated the series patches to no longer use ternary operators in
> updated code, but I left existing code alone (changing that should not
> be part of this patch set anyway).

Thanks, that's what I would have done too.