| From | Doug Anderson <> | Date | Wed, 30 Aug 2023 13:33:58 -0700 | Subject | Re: [PATCH v2 7/7] regulator/core: regulator_lock_two: remove duplicate locking code |
| |
Hi,
On Wed, Aug 30, 2023 at 10:35 AM Michał Mirosław <mirq-linux@rere.qmqm.pl> wrote: > > Make regulator_lock_two() shorter by observing that we have only two > locks and when swapped earlier the retry code becomes identical to the > normal (optimistic) path. > > Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> > --- > drivers/regulator/core.c | 30 +++++++++------------------- > 1 file changed, 11 insertions(+), 19 deletions(-)
FWIW, I'm leaving this one to Stephen to review since he had strong opinions on some of the style issues here.
-Doug
|