[SCSI] bfa: Use pcie_set()/get_readrq() to simplify code
authorYijing Wang <wangyijing@huawei.com>
Thu, 5 Sep 2013 07:55:25 +0000 (15:55 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 23 Sep 2013 23:30:03 +0000 (17:30 -0600)
commitc0102c00d8c9f4109509d9d68631a1ad47703b5f
treeff3e9ce1eff09b5af990e73565949c7b4421d487
parentf8a26fe637fc740ebb927ce25dcf036363a998df
[SCSI] bfa: Use pcie_set()/get_readrq() to simplify code

Use pcie_get_readrq()/pcie_set_readrq() to simplify code.

Jon Mason proposed a similar patch a couple years ago (see below).

[bhelgaas: validate pcie_max_read_reqsz, add pointer to Jon's patch]
Reference: http://lkml.kernel.org/r/1309191190-14670-1-git-send-email-jdmason@kudzu.us
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Jiang Liu <jiang.liu@huawei.com>
Cc: Anil Gurumurthy <agurumur@brocade.com>
Cc: Vijaya Mohan Guvva <vmohan@brocade.com>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
drivers/scsi/bfa/bfad.c