]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb73ddb87a06618db6daecca2468a3c54f3aabb37
tree237f17e1b9630fffbb2ffb65efce47289defa447
parent97df8821a06311896e71a4a7329bdd5ef23cb275
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: 2fd238a293cc7ee4 ("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