From: Mike Rapoport Date: Wed, 2 Sep 2015 08:03:41 +0000 (+0300) Subject: i2c: mux: reg: fix compilation warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a05a34e7f6ff4a942186e99932885b10c6bc1d1a;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git i2c: mux: reg: fix compilation warnings With CONFIG_OF=n, the following warnings occur when compiling drivers/i2c/muxes/i2c-mux-reg.c: CC drivers/i2c/muxes/i2c-mux-reg.o drivers/i2c/muxes/i2c-mux-reg.c:170:13: warning: ‘struct gpiomux’ declared inside parameter list [enabled by default] struct platform_device *pdev) ^ drivers/i2c/muxes/i2c-mux-reg.c:170:13: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] drivers/i2c/muxes/i2c-mux-reg.c: In function ‘i2c_mux_reg_probe’: drivers/i2c/muxes/i2c-mux-reg.c:201:3: warning: passing argument 1 of ‘i2c_mux_reg_probe_dt’ from incompatible pointer type [enabled by default] ret = i2c_mux_reg_probe_dt(mux, pdev); ^ Signed-off-by: Mike Rapoport Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/muxes/i2c-mux-reg.c b/drivers/i2c/muxes/i2c-mux-reg.c index fb5b55a0cf9d..7913d8019bb3 100644 --- a/drivers/i2c/muxes/i2c-mux-reg.c +++ b/drivers/i2c/muxes/i2c-mux-reg.c @@ -160,7 +160,7 @@ static int i2c_mux_reg_probe_dt(struct regmux *mux, return 0; } #else -static int i2c_mux_reg_probe_dt(struct gpiomux *mux, +static int i2c_mux_reg_probe_dt(struct regmux *mux, struct platform_device *pdev) { return 0;