i2c: mlxbf: Remove unecessary wrapper functions
authorKhalil Blaiech <kblaiech@nvidia.com>
Tue, 3 Nov 2020 19:54:40 +0000 (14:54 -0500)
committerWolfram Sang <wsa@kernel.org>
Fri, 6 Nov 2020 14:51:57 +0000 (15:51 +0100)
commit4b19d806ac5272bb9f64d78ca6832867870eb45d
tree237f17e1b9630fffbb2ffb65efce47289defa447
parent08e019e27a9ed0d6c410176cab4e029e3d233cb8
i2c: mlxbf: Remove unecessary wrapper functions

Few wrapper functions are useless and can be inlined. So
delete mlxbf_i2c_read() and mlxbf_i2c_write() and replace
them with readl() and writel(), respectively. Also delete
mlxbf_i2c_read_data() and mlxbf_i2c_write() and replace
them with ioread32be() and iowrite32be(), respectively.

Fixes: b5b5b32081cd206b ("i2c: mlxbf: I2C SMBus driver for Mellanox BlueField SoC")
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Signed-off-by: Khalil Blaiech <kblaiech@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-mlxbf.c