public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c: mux: fix compiler warning
@ 2015-09-05 18:05 Michele Curti
  2015-09-05 18:13 ` Wolfram Sang
  0 siblings, 1 reply; 2+ messages in thread
From: Michele Curti @ 2015-09-05 18:05 UTC (permalink / raw)
  To: wsa; +Cc: yorksun, alexander.sverdlin, linux-i2c, linux-kernel,
	Michele Curti

Fix compiler warning when CONFIG_OF is not defined by changing
the 'mux' parameter type in the i2c_mux_reg_probe stub.

Signed-off-by: Michele Curti <michele.curti@gmail.com>
---
 drivers/i2c/muxes/i2c-mux-reg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/muxes/i2c-mux-reg.c b/drivers/i2c/muxes/i2c-mux-reg.c
index 86d41d36..cff1519 100644
--- a/drivers/i2c/muxes/i2c-mux-reg.c
+++ b/drivers/i2c/muxes/i2c-mux-reg.c
@@ -166,7 +166,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;
-- 
2.5.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] i2c: mux: fix compiler warning
  2015-09-05 18:05 [PATCH] i2c: mux: fix compiler warning Michele Curti
@ 2015-09-05 18:13 ` Wolfram Sang
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2015-09-05 18:13 UTC (permalink / raw)
  To: Michele Curti; +Cc: yorksun, alexander.sverdlin, linux-i2c, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 432 bytes --]

On Sat, Sep 05, 2015 at 08:05:10PM +0200, Michele Curti wrote:
> Fix compiler warning when CONFIG_OF is not defined by changing
> the 'mux' parameter type in the i2c_mux_reg_probe stub.
> 
> Signed-off-by: Michele Curti <michele.curti@gmail.com>

Thanks, this is already in my for-next branch:

https://git.kernel.org/cgit/linux/kernel/git/wsa/linux.git/commit/?h=i2c/for-next&id=a05a34e7f6ff4a942186e99932885b10c6bc1d1a


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-05 18:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-05 18:05 [PATCH] i2c: mux: fix compiler warning Michele Curti
2015-09-05 18:13 ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox