nvme-pci: clean up SMBSZ bit definitions
authorChristoph Hellwig <hch@lst.de>
Wed, 20 Dec 2017 13:50:00 +0000 (14:50 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 17 Jan 2018 16:55:14 +0000 (17:55 +0100)
commit88de4598bca84e27b261685c06fff816b8d932a1
treea761a959de7770174509f830b97700bcca01e36e
parentf65efd6dfe4e687637704f7023157fdee99913ca
nvme-pci: clean up SMBSZ bit definitions

Define the bit positions instead of macros using the magic values,
and move the expanded helpers to calculate the size and size unit into
the implementation C file.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
drivers/nvme/host/pci.c
include/linux/nvme.h