RDMA/hns: Replace __raw_write*(cpu_to_le*()) with LE write*()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 14 Feb 2018 18:11:17 +0000 (20:11 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 14 Feb 2018 23:32:54 +0000 (16:32 -0700)
commit71591d1280e5ef02c2af2ffb9801d0c842973be9
tree9f5077b30ab52481446ad78b3cf1882662d17eff
parent7061f28d8a2faf8131ac3a8ceb1af9850313e22c
RDMA/hns: Replace __raw_write*(cpu_to_le*()) with LE write*()

There is no need to repeat the semantics of writel() and similar.
Moreover sparse complains about this:

drivers/infiniband/hw/hns/hns_roce_hw_v1.c:1690:22: expected unsigned long long val
drivers/infiniband/hw/hns/hns_roce_hw_v1.c:1690:22: got restricted __le64 <noident>

Fixing this by replacing __raw_write*(cpu_to_le*()) calls by plain
write*() ones.

Note, write*() accessors are little endian by definition.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.c