]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73891a5486465a60708d3444a7ec9ed61f46444f
treea761a959de7770174509f830b97700bcca01e36e
parentae26a7757697e48681a01eadb4b489b2ff0e6716
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