]> git.sur5r.net Git - u-boot/commit
spi: zynq_[q]spi: Use GENMASK macro
authorJagan Teki <jteki@openedev.com>
Thu, 22 Oct 2015 15:36:37 +0000 (21:06 +0530)
committerJagan Teki <jteki@openedev.com>
Tue, 27 Oct 2015 17:49:15 +0000 (23:19 +0530)
commit9cf2ffb3c3721c28f8d6473df0fa8693f5bead7d
tree5774b8c3639571c8bf93bda3d7c8fe2f7fb864e6
parent736b4df15d603325f97663a7a4f26f7abf454dcf
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: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
drivers/spi/zynq_qspi.c
drivers/spi/zynq_spi.c