aboutsummaryrefslogtreecommitdiff
path: root/drivers/i3c
diff options
context:
space:
mode:
authorGravatar Jesse Brandeburg <jesse.brandeburg@intel.com> 2023-12-05 17:01:02 -0800
committerGravatar Tony Nguyen <anthony.l.nguyen@intel.com> 2023-12-18 11:15:53 -0800
commit4d893c104cda8961b8885737b2de73b83f7b6d0d (patch)
tree6c934fb20b888e3f540b2572e38107927b2d3bb5 /drivers/i3c
parentintel: add bit macro includes where needed (diff)
downloadlinux-4d893c104cda8961b8885737b2de73b83f7b6d0d.tar.gz
linux-4d893c104cda8961b8885737b2de73b83f7b6d0d.tar.bz2
linux-4d893c104cda8961b8885737b2de73b83f7b6d0d.zip
intel: legacy: field prep conversion
Refactor several older Intel drivers 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. @prep2@ constant shift,mask; type T; expression a; @@ -(((T)(a) << shift) & mask) +FIELD_PREP(mask, a) @prep@ constant shift,mask; type T; expression a; @@ -((T)((a) << shift) & mask) +FIELD_PREP(mask, a) 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>
Diffstat (limited to 'drivers/i3c')
0 files changed, 0 insertions, 0 deletions