All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] i2c: mux: move include files out of include/linux/i2c
@ 2017-08-13 13:58 Wolfram Sang
  2017-08-13 13:58 ` [PATCH v2 1/2] i2c: mux: pca954x: move header file out of I2C realm Wolfram Sang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Wolfram Sang @ 2017-08-13 13:58 UTC (permalink / raw)
  To: linux-i2c; +Cc: Peter Rosin, Wolfram Sang

include/linux/i2c is to be deprecated, so move these header files only
including platform_data to the better suited platform_data directory.

Peter, I know I said I'll include these two patches in my for-current branch.
But other of these cleanup patches missed this merge window as well. Since I
need to wait for the next merge window anyhow (until all patches are applied),
I'd think these patches can also go the proper way via your tree, too.

These patches are rebased to v4.13-rc4 (let me know if you prefer a
different base). The PCA patch has an empty line removed now.

Thanks,

   Wolfram


Wolfram Sang (2):
  i2c: mux: pca954x: move header file out of I2C realm
  i2c: mux: mlxcpld: move header file out of I2C realm

 drivers/i2c/muxes/i2c-mux-mlxcpld.c                | 2 +-
 drivers/i2c/muxes/i2c-mux-pca9541.c                | 3 +--
 drivers/i2c/muxes/i2c-mux-pca954x.c                | 2 +-
 include/linux/{i2c => platform_data}/pca954x.h     | 0
 include/linux/{i2c => platform_data/x86}/mlxcpld.h | 0
 5 files changed, 3 insertions(+), 4 deletions(-)
 rename include/linux/{i2c => platform_data}/pca954x.h (100%)
 rename include/linux/{i2c => platform_data/x86}/mlxcpld.h (100%)

-- 
2.11.0

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

* [PATCH v2 1/2] i2c: mux: pca954x: move header file out of I2C realm
  2017-08-13 13:58 [PATCH v2 0/2] i2c: mux: move include files out of include/linux/i2c Wolfram Sang
@ 2017-08-13 13:58 ` Wolfram Sang
  2017-08-13 13:58 ` [PATCH v2 2/2] i2c: mux: mlxcpld: " Wolfram Sang
  2017-08-13 21:23 ` [PATCH v2 0/2] i2c: mux: move include files out of include/linux/i2c Peter Rosin
  2 siblings, 0 replies; 5+ messages in thread
From: Wolfram Sang @ 2017-08-13 13:58 UTC (permalink / raw)
  To: linux-i2c; +Cc: Peter Rosin, Wolfram Sang

include/linux/i2c is not for client devices. Move the header file to a
more appropriate location.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
---
 drivers/i2c/muxes/i2c-mux-pca9541.c            | 3 +--
 drivers/i2c/muxes/i2c-mux-pca954x.c            | 2 +-
 include/linux/{i2c => platform_data}/pca954x.h | 0
 3 files changed, 2 insertions(+), 3 deletions(-)
 rename include/linux/{i2c => platform_data}/pca954x.h (100%)

diff --git a/drivers/i2c/muxes/i2c-mux-pca9541.c b/drivers/i2c/muxes/i2c-mux-pca9541.c
index 9e318c9516c767..56e1f550b2ed0b 100644
--- a/drivers/i2c/muxes/i2c-mux-pca9541.c
+++ b/drivers/i2c/muxes/i2c-mux-pca9541.c
@@ -23,8 +23,7 @@
 #include <linux/device.h>
 #include <linux/i2c.h>
 #include <linux/i2c-mux.h>
-
-#include <linux/i2c/pca954x.h>
+#include <linux/platform_data/pca954x.h>
 
 /*
  * The PCA9541 is a bus master selector. It supports two I2C masters connected
diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mux-pca954x.c
index f1751c290af67c..8de13d1ad223b2 100644
--- a/drivers/i2c/muxes/i2c-mux-pca954x.c
+++ b/drivers/i2c/muxes/i2c-mux-pca954x.c
@@ -39,7 +39,7 @@
 #include <linux/gpio/consumer.h>
 #include <linux/i2c.h>
 #include <linux/i2c-mux.h>
-#include <linux/i2c/pca954x.h>
+#include <linux/platform_data/pca954x.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
 #include <linux/module.h>
diff --git a/include/linux/i2c/pca954x.h b/include/linux/platform_data/pca954x.h
similarity index 100%
rename from include/linux/i2c/pca954x.h
rename to include/linux/platform_data/pca954x.h
-- 
2.11.0

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

* [PATCH v2 2/2] i2c: mux: mlxcpld: move header file out of I2C realm
  2017-08-13 13:58 [PATCH v2 0/2] i2c: mux: move include files out of include/linux/i2c Wolfram Sang
  2017-08-13 13:58 ` [PATCH v2 1/2] i2c: mux: pca954x: move header file out of I2C realm Wolfram Sang
@ 2017-08-13 13:58 ` Wolfram Sang
  2017-08-13 21:23 ` [PATCH v2 0/2] i2c: mux: move include files out of include/linux/i2c Peter Rosin
  2 siblings, 0 replies; 5+ messages in thread
From: Wolfram Sang @ 2017-08-13 13:58 UTC (permalink / raw)
  To: linux-i2c; +Cc: Peter Rosin, Wolfram Sang

include/linux/i2c is not for client devices. Move the header file to a
more appropriate location.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
---
 drivers/i2c/muxes/i2c-mux-mlxcpld.c                | 2 +-
 include/linux/{i2c => platform_data/x86}/mlxcpld.h | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename include/linux/{i2c => platform_data/x86}/mlxcpld.h (100%)

diff --git a/drivers/i2c/muxes/i2c-mux-mlxcpld.c b/drivers/i2c/muxes/i2c-mux-mlxcpld.c
index e53f2abd135070..63458b025ef904 100644
--- a/drivers/i2c/muxes/i2c-mux-mlxcpld.c
+++ b/drivers/i2c/muxes/i2c-mux-mlxcpld.c
@@ -40,7 +40,7 @@
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
-#include <linux/i2c/mlxcpld.h>
+#include <linux/platform_data/x86/mlxcpld.h>
 
 #define CPLD_MUX_MAX_NCHANS	8
 
diff --git a/include/linux/i2c/mlxcpld.h b/include/linux/platform_data/x86/mlxcpld.h
similarity index 100%
rename from include/linux/i2c/mlxcpld.h
rename to include/linux/platform_data/x86/mlxcpld.h
-- 
2.11.0

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

* Re: [PATCH v2 0/2] i2c: mux: move include files out of include/linux/i2c
  2017-08-13 13:58 [PATCH v2 0/2] i2c: mux: move include files out of include/linux/i2c Wolfram Sang
  2017-08-13 13:58 ` [PATCH v2 1/2] i2c: mux: pca954x: move header file out of I2C realm Wolfram Sang
  2017-08-13 13:58 ` [PATCH v2 2/2] i2c: mux: mlxcpld: " Wolfram Sang
@ 2017-08-13 21:23 ` Peter Rosin
  2017-08-14  8:08   ` Wolfram Sang
  2 siblings, 1 reply; 5+ messages in thread
From: Peter Rosin @ 2017-08-13 21:23 UTC (permalink / raw)
  To: Wolfram Sang, linux-i2c

On 2017-08-13 15:58, Wolfram Sang wrote:
> include/linux/i2c is to be deprecated, so move these header files only
> including platform_data to the better suited platform_data directory.
> 
> Peter, I know I said I'll include these two patches in my for-current branch.
> But other of these cleanup patches missed this merge window as well. Since I
> need to wait for the next merge window anyhow (until all patches are applied),
> I'd think these patches can also go the proper way via your tree, too.
> 
> These patches are rebased to v4.13-rc4 (let me know if you prefer a
> different base). The PCA patch has an empty line removed now.

Right, no problem, I'm happy to take them. However, I know I probably acked
them and all, but now that I look at them I see that the #includes are no
longer sorted. Care to fix that?

Cheers,
peda

> Thanks,
> 
>    Wolfram
> 
> 
> Wolfram Sang (2):
>   i2c: mux: pca954x: move header file out of I2C realm
>   i2c: mux: mlxcpld: move header file out of I2C realm
> 
>  drivers/i2c/muxes/i2c-mux-mlxcpld.c                | 2 +-
>  drivers/i2c/muxes/i2c-mux-pca9541.c                | 3 +--
>  drivers/i2c/muxes/i2c-mux-pca954x.c                | 2 +-
>  include/linux/{i2c => platform_data}/pca954x.h     | 0
>  include/linux/{i2c => platform_data/x86}/mlxcpld.h | 0
>  5 files changed, 3 insertions(+), 4 deletions(-)
>  rename include/linux/{i2c => platform_data}/pca954x.h (100%)
>  rename include/linux/{i2c => platform_data/x86}/mlxcpld.h (100%)
> 

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

* Re: [PATCH v2 0/2] i2c: mux: move include files out of include/linux/i2c
  2017-08-13 21:23 ` [PATCH v2 0/2] i2c: mux: move include files out of include/linux/i2c Peter Rosin
@ 2017-08-14  8:08   ` Wolfram Sang
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfram Sang @ 2017-08-14  8:08 UTC (permalink / raw)
  To: Peter Rosin; +Cc: linux-i2c

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


> Right, no problem, I'm happy to take them. However, I know I probably acked
> them and all, but now that I look at them I see that the #includes are no
> longer sorted. Care to fix that?

Sure, will do.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2017-08-14  8:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-13 13:58 [PATCH v2 0/2] i2c: mux: move include files out of include/linux/i2c Wolfram Sang
2017-08-13 13:58 ` [PATCH v2 1/2] i2c: mux: pca954x: move header file out of I2C realm Wolfram Sang
2017-08-13 13:58 ` [PATCH v2 2/2] i2c: mux: mlxcpld: " Wolfram Sang
2017-08-13 21:23 ` [PATCH v2 0/2] i2c: mux: move include files out of include/linux/i2c Peter Rosin
2017-08-14  8:08   ` Wolfram Sang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.