]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: ocores: Fix -Wint-to-pointer-cast warning
authorBin Meng <bmeng.cn@gmail.com>
Sun, 12 Sep 2021 03:15:11 +0000 (11:15 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 20 Oct 2021 02:59:09 +0000 (10:59 +0800)
commit7e22c85918e68e6df50d01d08585f88fbbaf3456
tree1378d68ddda9780d5c056d69e3ea6a03b8c21fe4
parentd710c7e84187088cb157ab4131ca50a1236a931a
i2c: ocores: Fix -Wint-to-pointer-cast warning

The following warning is seen in ocores_i2c.c in a 32-bit build:

  warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

Change to use dev_read_addr_ptr().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
drivers/i2c/ocores_i2c.c