Skip to content
Snippets Groups Projects
Commit 9cf2ffb3 authored by Jagan Teki's avatar Jagan Teki
Browse files

spi: zynq_[q]spi: Use GENMASK macro


GENMASK macro used on zynq_spi.c and zynq_qspi.c

GENMASK is used to create a contiguous bitmask([hi:lo]).
Ex: (0x7 << 3) => GENMASK(5, 3)

Cc: Michal Simek <michal.simek@xilinx.com>
Acked-by: default avatarSiva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: default avatarJagan Teki <jteki@openedev.com>
parent 736b4df1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment