Files
linux/drivers/net/ethernet/intel/ice
Jesse Brandeburg 5a259f8e0b ice: field get conversion
Refactor the ice driver to use FIELD_GET() for mask and shift reads,
which reduces lines of code and adds clarity of intent.

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

@get@
constant shift,mask;
type T;
expression a;
@@
-(((T)(a) & mask) >> shift)
+FIELD_GET(mask, a)

and applied via:
spatch --sp-file field_prep.cocci --in-place --dir \
 drivers/net/ethernet/intel/

CC: Alexander Lobakin <aleksander.lobakin@intel.com>
Cc: Julia Lawall <Julia.Lawall@inria.fr>
Reviewed-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2023-12-18 11:20:43 -08:00
..
2023-12-18 11:20:43 -08:00
2023-12-18 11:20:43 -08:00
2023-12-14 09:43:04 -08:00
2023-12-18 11:20:26 -08:00
2023-12-18 11:20:43 -08:00
2023-12-18 11:20:43 -08:00
2023-01-19 08:18:03 -08:00
2023-12-18 11:20:26 -08:00
2023-11-13 11:42:15 -08:00
2023-12-18 11:20:43 -08:00
2023-10-26 20:32:38 -07:00
2023-12-18 11:20:26 -08:00
2023-12-18 11:20:26 -08:00
2023-12-18 11:20:26 -08:00
2023-12-18 11:20:43 -08:00
2023-12-18 11:20:43 -08:00
2023-12-18 11:20:43 -08:00
2023-12-05 11:40:12 +01:00
2023-12-05 11:40:12 +01:00
2023-12-05 11:40:12 +01:00
2023-12-18 11:20:43 -08:00
2023-12-05 11:40:12 +01:00
2023-11-13 11:42:14 -08:00
2023-11-13 11:42:14 -08:00
2023-12-18 11:20:43 -08:00
2023-12-18 11:20:43 -08:00
2023-10-20 12:53:05 +01:00
2023-12-18 11:20:26 -08:00
2023-08-17 10:43:06 -07:00
2023-11-13 11:42:12 -08:00
2023-12-18 11:20:26 -08:00
2023-12-18 11:20:43 -08:00
2023-12-18 11:20:43 -08:00
2023-12-14 09:50:48 -08:00
2023-12-14 09:50:48 -08:00