Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1219592 > unrolled thread

[PATCH] i2c: mux: fix compiler warning

Started byMichele Curti <michele.curti@gmail.com>
First post2015-09-05 20:10 +0200
Last post2015-09-05 20:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] i2c: mux: fix compiler warning Michele Curti <michele.curti@gmail.com> - 2015-09-05 20:10 +0200
    Re: [PATCH] i2c: mux: fix compiler warning Wolfram Sang <wsa@the-dreams.de> - 2015-09-05 20:20 +0200

#1219592 — [PATCH] i2c: mux: fix compiler warning

FromMichele Curti <michele.curti@gmail.com>
Date2015-09-05 20:10 +0200
Subject[PATCH] i2c: mux: fix compiler warning
Message-ID<q5q4x-81k-5@gated-at.bofh.it>
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1219595

FromWolfram Sang <wsa@the-dreams.de>
Date2015-09-05 20:20 +0200
Message-ID<q5qed-8cx-13@gated-at.bofh.it>
In reply to#1219592

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web