i2c: aspeed: Add an explicit type casting for *get_clk_reg_val
authorJae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
Tue, 24 Jul 2018 20:36:15 +0000 (13:36 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 4 Aug 2018 21:12:31 +0000 (23:12 +0200)
commit5799c4b2f1dbc0166d9b1d94443deaafc6e7a070
treeffc5b6398e4ff9bb91e0163631be93580c5065ed
parent2f471d90249551d4b2dab3c7f0527640a3395f2e
i2c: aspeed: Add an explicit type casting for *get_clk_reg_val

This commit fixes this sparse warning:
drivers/i2c/busses/i2c-aspeed.c:875:38: warning: incorrect type in assignment (different modifiers)
drivers/i2c/busses/i2c-aspeed.c:875:38:    expected unsigned int ( *get_clk_reg_val )( ... )
drivers/i2c/busses/i2c-aspeed.c:875:38:    got void const *const data

Reported-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-aspeed.c