Rather than doing the same shift operation each time, create a function which writes in the correct command and the LUN. This will allows us to handle newer controllers which do not want the LUN in the command. Fix checkpatch warnings about CONFIG_SYS_64BIT_LBA while here. Signed-off-by: Simon Glass <sjg@chromium.org>