NVMe: Simplify Firmware Activate code slightly
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Mon, 6 May 2013 12:22:18 +0000 (08:22 -0400)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Wed, 8 May 2013 13:55:05 +0000 (09:55 -0400)
commitab3ea5bf37e7189e843e19e500e7af50e802b5f6
treeaf71b6bc25b4e51221d9fea8d3cd74d46ed66e83
parent44af146a84fa4a8e136d824207dcd356958a112b
NVMe: Simplify Firmware Activate code slightly

Add definitions for the three Firmware Activate actions, and change the
SCSI translation code to construct the command into a temporary variable
instead of translating the endianness back-and-forth.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Reviewed-by: Vishal Verma <vishal.l.verma@linux.intel.com>
drivers/block/nvme-scsi.c
include/linux/nvme.h