* [PATCH 0/1] hid: move include files out of include/linux/i2c
@ 2017-05-21 20:30 Wolfram Sang
2017-05-21 20:30 ` [PATCH 1/1] hid: i2c-hid: move header file out of I2C realm Wolfram Sang
0 siblings, 1 reply; 4+ messages in thread
From: Wolfram Sang @ 2017-05-21 20:30 UTC (permalink / raw)
To: linux-i2c; +Cc: Wolfram Sang, linux-input, linux-kernel
It doesn't make sense to use include/linux/i2c for client drivers which may in
fact rather be hwmon or input or whatever devices. As a result, I want to
deprecate include/linux/i2c for good. This series moves the include files to a
better location, largely include/platform_data because that is what most of the
moved include files contain. Note that some files don't seem to have upstream
users in board code, so they maybe could even be removed? I didn't check for
that now, but I did it for one i2c master driver recently. So, it may be
possible.
I prefer the series to go upstream via the subsystem tree; if you prefer that I
take it via I2C, just let me know.
No runtime testing because of no HW, but buildbot is happy with this series at
least. A branch can be found here:
git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/platform_data
Thanks and kind regards,
Wolfram
Wolfram Sang (1):
hid: i2c-hid: move header file out of I2C realm
drivers/hid/i2c-hid/i2c-hid.c | 2 +-
include/linux/{i2c => platform_data}/i2c-hid.h | 0
2 files changed, 1 insertion(+), 1 deletion(-)
rename include/linux/{i2c => platform_data}/i2c-hid.h (100%)
--
2.11.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] hid: i2c-hid: move header file out of I2C realm
2017-05-21 20:30 [PATCH 0/1] hid: move include files out of include/linux/i2c Wolfram Sang
@ 2017-05-21 20:30 ` Wolfram Sang
2017-05-22 7:56 ` Benjamin Tissoires
2017-05-22 12:01 ` Jiri Kosina
0 siblings, 2 replies; 4+ messages in thread
From: Wolfram Sang @ 2017-05-21 20:30 UTC (permalink / raw)
To: linux-i2c
Cc: Wolfram Sang, Jiri Kosina, Benjamin Tissoires, linux-input,
linux-kernel
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/hid/i2c-hid/i2c-hid.c | 2 +-
include/linux/{i2c => platform_data}/i2c-hid.h | 0
2 files changed, 1 insertion(+), 1 deletion(-)
rename include/linux/{i2c => platform_data}/i2c-hid.h (100%)
diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c
index 8daa8ce64ebba5..841aa43526eba4 100644
--- a/drivers/hid/i2c-hid/i2c-hid.c
+++ b/drivers/hid/i2c-hid/i2c-hid.c
@@ -40,7 +40,7 @@
#include <linux/of.h>
#include <linux/regulator/consumer.h>
-#include <linux/i2c/i2c-hid.h>
+#include <linux/platform_data/i2c-hid.h>
#include "../hid-ids.h"
diff --git a/include/linux/i2c/i2c-hid.h b/include/linux/platform_data/i2c-hid.h
similarity index 100%
rename from include/linux/i2c/i2c-hid.h
rename to include/linux/platform_data/i2c-hid.h
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] hid: i2c-hid: move header file out of I2C realm
2017-05-21 20:30 ` [PATCH 1/1] hid: i2c-hid: move header file out of I2C realm Wolfram Sang
@ 2017-05-22 7:56 ` Benjamin Tissoires
2017-05-22 12:01 ` Jiri Kosina
1 sibling, 0 replies; 4+ messages in thread
From: Benjamin Tissoires @ 2017-05-22 7:56 UTC (permalink / raw)
To: Wolfram Sang; +Cc: linux-i2c, Jiri Kosina, linux-input, linux-kernel
On May 21 2017 or thereabouts, Wolfram Sang wrote:
> 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>
> ---
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cheers,
Benjamin
> drivers/hid/i2c-hid/i2c-hid.c | 2 +-
> include/linux/{i2c => platform_data}/i2c-hid.h | 0
> 2 files changed, 1 insertion(+), 1 deletion(-)
> rename include/linux/{i2c => platform_data}/i2c-hid.h (100%)
>
> diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c
> index 8daa8ce64ebba5..841aa43526eba4 100644
> --- a/drivers/hid/i2c-hid/i2c-hid.c
> +++ b/drivers/hid/i2c-hid/i2c-hid.c
> @@ -40,7 +40,7 @@
> #include <linux/of.h>
> #include <linux/regulator/consumer.h>
>
> -#include <linux/i2c/i2c-hid.h>
> +#include <linux/platform_data/i2c-hid.h>
>
> #include "../hid-ids.h"
>
> diff --git a/include/linux/i2c/i2c-hid.h b/include/linux/platform_data/i2c-hid.h
> similarity index 100%
> rename from include/linux/i2c/i2c-hid.h
> rename to include/linux/platform_data/i2c-hid.h
> --
> 2.11.0
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] hid: i2c-hid: move header file out of I2C realm
2017-05-21 20:30 ` [PATCH 1/1] hid: i2c-hid: move header file out of I2C realm Wolfram Sang
2017-05-22 7:56 ` Benjamin Tissoires
@ 2017-05-22 12:01 ` Jiri Kosina
1 sibling, 0 replies; 4+ messages in thread
From: Jiri Kosina @ 2017-05-22 12:01 UTC (permalink / raw)
To: Wolfram Sang; +Cc: linux-i2c, Benjamin Tissoires, linux-input, linux-kernel
On Sun, 21 May 2017, Wolfram Sang wrote:
> 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>
Applied to for-4.13/upstream. Thanks,
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-05-22 12:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-21 20:30 [PATCH 0/1] hid: move include files out of include/linux/i2c Wolfram Sang
2017-05-21 20:30 ` [PATCH 1/1] hid: i2c-hid: move header file out of I2C realm Wolfram Sang
2017-05-22 7:56 ` Benjamin Tissoires
2017-05-22 12:01 ` Jiri Kosina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).