Thread (37 messages) 37 messages, 5 authors, 2023-12-06

Re: [PATCH iwl-next v1 08/13] igc: field prep conversion

From: Simon Horman <horms@kernel.org>
Date: 2023-11-24 11:01:20
Also in: intel-wired-lan

On Tue, Nov 21, 2023 at 01:19:16PM -0800, Jesse Brandeburg wrote:
Refactor igc driver to use FIELD_PREP(), which reduces lines of code
and adds clarity of intent.

This code was generated by the following coccinelle/spatch script and
then manually repaired in a later patch.

@prep@
constant shift,mask;
expression a;
@@
-((a << shift) & mask)
+FIELD_PREP(mask, a)

Cc: Julia Lawall <Julia.Lawall@inria.fr>
Cc: Sasha Neftin <redacted>
Reviewed-by: Marcin Szycik <redacted>
Signed-off-by: Jesse Brandeburg <redacted>
Reviewed-by: Simon Horman <horms@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help