From: Markus Elfring <Markus.Elfring@web.de>
To: Thorsten Blum <thorsten.blum@linux.dev>, kernel-janitors@vger.kernel.org
Cc: LKML <linux-kernel@vger.kernel.org>,
Danilo Krummrich <dakr@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Mark Brown <broonie@kernel.org>,
"Rafael J. Wysocki" <rafael@kernel.org>
Subject: Re: [PATCH] regcache: Use sort()'s default swap() implementation
Date: Mon, 28 Apr 2025 11:00:46 +0200 [thread overview]
Message-ID: <edab112f-9449-4862-8f8a-0beae136e0c6@web.de> (raw)
In-Reply-To: <20250428061318.88859-2-thorsten.blum@linux.dev>
…
> +++ b/drivers/base/regmap/regcache.c
…
> void regcache_sort_defaults(struct reg_default *defaults, unsigned int ndefaults)
> {
> sort(defaults, ndefaults, sizeof(*defaults),
> - regcache_defaults_cmp, regcache_defaults_swap);
> + regcache_defaults_cmp, NULL);
> }
…
Would the following source code formatting become applicable?
+ sort(defaults, ndefaults, sizeof(*defaults), regcache_defaults_cmp, NULL);
Regards,
Markus
next prev parent reply other threads:[~2025-04-28 9:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-28 6:13 [PATCH] regcache: Use sort()'s default swap() implementation Thorsten Blum
2025-04-28 9:00 ` Markus Elfring [this message]
2025-04-30 0:16 ` Mark Brown
2025-04-30 23:09 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=edab112f-9449-4862-8f8a-0beae136e0c6@web.de \
--to=markus.elfring@web.de \
--cc=broonie@kernel.org \
--cc=dakr@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=thorsten.blum@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.