aboutsummaryrefslogtreecommitdiff
path: root/common/miiphyutil.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-06-22 16:08:56 -0400
committerTom Rini <trini@konsulko.com>2022-06-22 21:29:47 -0400
commitc4645fc87e96e730a6c140d7d7820be2da1b2743 (patch)
tree2b38b510c055b2053dae6eedb57796c31fcae3d0 /common/miiphyutil.c
parentf98457d70a35ad6bda284577a8a2a8ad7868b13b (diff)
downloadu-boot-c4645fc87e96e730a6c140d7d7820be2da1b2743.zip
u-boot-c4645fc87e96e730a6c140d7d7820be2da1b2743.tar.gz
u-boot-c4645fc87e96e730a6c140d7d7820be2da1b2743.tar.bz2
cmd/misc: Stop using a function pointer
Currently, enabling CMD_MISC gives: cmd/misc.c:67:25: warning: assignment to 'int (*)(struct udevice *, int, void *, int)' from incompatible pointer type 'int (*)(struct udevice *, int, const void *, int)' [-Wincompatible-pointer-types] Because 'misc_read' takes a void * and 'misc_write' takes a const void *, both of which make sense for their operation. Given there's one place we make use of the function pointer, just call read or write directly for the operation we're called with. Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Sean Anderson <seanga2@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/miiphyutil.c')
0 files changed, 0 insertions, 0 deletions