linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86/platform/intel-mid: switch MPU3050 driver to IIO
@ 2016-12-14 13:39 Linus Walleij
  2016-12-14 15:12 ` Andy Shevchenko
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Linus Walleij @ 2016-12-14 13:39 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H . Peter Anvin
  Cc: linux-kernel, Linus Walleij, Dmitry Torokhov, Jonathan Cameron,
	Andy Shevchenko

The Intel Mid goes in and creates a I2C device for the
MPU3050 if the input driver for MPU-3050 is activated.
As of commit 3904b28efb2c
("iio: gyro: Add driver for the MPU-3050 gyroscope")
there is a proper and fully featured IIO driver for this
device, so deprecate the use of the incomplete input driver
by augmenting the device population code to react to the
presence of the IIO driver's Kconfig symbol instead.

Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 arch/x86/platform/intel-mid/device_libs/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/platform/intel-mid/device_libs/Makefile b/arch/x86/platform/intel-mid/device_libs/Makefile
index dd6cfa4ad3ac..61b5ed2b7d40 100644
--- a/arch/x86/platform/intel-mid/device_libs/Makefile
+++ b/arch/x86/platform/intel-mid/device_libs/Makefile
@@ -19,7 +19,7 @@ obj-$(subst m,y,$(CONFIG_SPI_SPIDEV)) += platform_spidev.o
 # I2C Devices
 obj-$(subst m,y,$(CONFIG_SENSORS_EMC1403)) += platform_emc1403.o
 obj-$(subst m,y,$(CONFIG_SENSORS_LIS3LV02D)) += platform_lis331.o
-obj-$(subst m,y,$(CONFIG_INPUT_MPU3050)) += platform_mpu3050.o
+obj-$(subst m,y,$(CONFIG_MPU3050_I2C)) += platform_mpu3050.o
 obj-$(subst m,y,$(CONFIG_INPUT_BMA150)) += platform_bma023.o
 obj-$(subst m,y,$(CONFIG_DRM_MEDFIELD)) += platform_tc35876x.o
 # I2C GPIO Expanders
-- 
2.7.4

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

* Re: [PATCH] x86/platform/intel-mid: switch MPU3050 driver to IIO
  2016-12-14 13:39 [PATCH] x86/platform/intel-mid: switch MPU3050 driver to IIO Linus Walleij
@ 2016-12-14 15:12 ` Andy Shevchenko
  2016-12-20  7:59 ` [tip:x86/urgent] x86/platform/intel-mid: Switch " tip-bot for Linus Walleij
  2016-12-20  9:35 ` tip-bot for Linus Walleij
  2 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2016-12-14 15:12 UTC (permalink / raw)
  To: Linus Walleij, Thomas Gleixner, Ingo Molnar, H . Peter Anvin
  Cc: linux-kernel, Dmitry Torokhov, Jonathan Cameron

On Wed, 2016-12-14 at 14:39 +0100, Linus Walleij wrote:
> The Intel Mid goes in and creates a I2C device for the
> MPU3050 if the input driver for MPU-3050 is activated.
> As of commit 3904b28efb2c
> ("iio: gyro: Add driver for the MPU-3050 gyroscope")
> there is a proper and fully featured IIO driver for this
> device, so deprecate the use of the incomplete input driver
> by augmenting the device population code to react to the
> presence of the IIO driver's Kconfig symbol instead.
> 
> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> Cc: Jonathan Cameron <jic23@kernel.org>
> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
>  arch/x86/platform/intel-mid/device_libs/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/x86/platform/intel-mid/device_libs/Makefile
> b/arch/x86/platform/intel-mid/device_libs/Makefile
> index dd6cfa4ad3ac..61b5ed2b7d40 100644
> --- a/arch/x86/platform/intel-mid/device_libs/Makefile
> +++ b/arch/x86/platform/intel-mid/device_libs/Makefile
> @@ -19,7 +19,7 @@ obj-$(subst m,y,$(CONFIG_SPI_SPIDEV)) +=
> platform_spidev.o
>  # I2C Devices
>  obj-$(subst m,y,$(CONFIG_SENSORS_EMC1403)) += platform_emc1403.o
>  obj-$(subst m,y,$(CONFIG_SENSORS_LIS3LV02D)) += platform_lis331.o
> -obj-$(subst m,y,$(CONFIG_INPUT_MPU3050)) += platform_mpu3050.o
> +obj-$(subst m,y,$(CONFIG_MPU3050_I2C)) += platform_mpu3050.o
>  obj-$(subst m,y,$(CONFIG_INPUT_BMA150)) += platform_bma023.o
>  obj-$(subst m,y,$(CONFIG_DRM_MEDFIELD)) += platform_tc35876x.o
>  # I2C GPIO Expanders

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

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

* [tip:x86/urgent] x86/platform/intel-mid: Switch MPU3050 driver to IIO
  2016-12-14 13:39 [PATCH] x86/platform/intel-mid: switch MPU3050 driver to IIO Linus Walleij
  2016-12-14 15:12 ` Andy Shevchenko
@ 2016-12-20  7:59 ` tip-bot for Linus Walleij
  2016-12-20  9:35 ` tip-bot for Linus Walleij
  2 siblings, 0 replies; 4+ messages in thread
From: tip-bot for Linus Walleij @ 2016-12-20  7:59 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: jic23, hpa, peterz, linus.walleij, dmitry.torokhov, mingo,
	linux-kernel, tglx, torvalds, andriy.shevchenko

Commit-ID:  a7dcc6e076fb1e4ce1a56c7f3a49a83b41b01f44
Gitweb:     http://git.kernel.org/tip/a7dcc6e076fb1e4ce1a56c7f3a49a83b41b01f44
Author:     Linus Walleij <linus.walleij@linaro.org>
AuthorDate: Wed, 14 Dec 2016 14:39:54 +0100
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Tue, 20 Dec 2016 08:52:40 +0100

x86/platform/intel-mid: Switch MPU3050 driver to IIO

The Intel Mid goes in and creates a I2C device for the
MPU3050 if the input driver for MPU-3050 is activated.

As of commit:

  3904b28efb2c ("iio: gyro: Add driver for the MPU-3050 gyroscope")

.. there is a proper and fully featured IIO driver for this
device, so deprecate the use of the incomplete input driver
by augmenting the device population code to react to the
presence of the IIO driver's Kconfig symbol instead.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1481722794-4348-1-git-send-email-linus.walleij@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 arch/x86/platform/intel-mid/device_libs/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/platform/intel-mid/device_libs/Makefile b/arch/x86/platform/intel-mid/device_libs/Makefile
index dd6cfa4..61b5ed2 100644
--- a/arch/x86/platform/intel-mid/device_libs/Makefile
+++ b/arch/x86/platform/intel-mid/device_libs/Makefile
@@ -19,7 +19,7 @@ obj-$(subst m,y,$(CONFIG_SPI_SPIDEV)) += platform_spidev.o
 # I2C Devices
 obj-$(subst m,y,$(CONFIG_SENSORS_EMC1403)) += platform_emc1403.o
 obj-$(subst m,y,$(CONFIG_SENSORS_LIS3LV02D)) += platform_lis331.o
-obj-$(subst m,y,$(CONFIG_INPUT_MPU3050)) += platform_mpu3050.o
+obj-$(subst m,y,$(CONFIG_MPU3050_I2C)) += platform_mpu3050.o
 obj-$(subst m,y,$(CONFIG_INPUT_BMA150)) += platform_bma023.o
 obj-$(subst m,y,$(CONFIG_DRM_MEDFIELD)) += platform_tc35876x.o
 # I2C GPIO Expanders

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

* [tip:x86/urgent] x86/platform/intel-mid: Switch MPU3050 driver to IIO
  2016-12-14 13:39 [PATCH] x86/platform/intel-mid: switch MPU3050 driver to IIO Linus Walleij
  2016-12-14 15:12 ` Andy Shevchenko
  2016-12-20  7:59 ` [tip:x86/urgent] x86/platform/intel-mid: Switch " tip-bot for Linus Walleij
@ 2016-12-20  9:35 ` tip-bot for Linus Walleij
  2 siblings, 0 replies; 4+ messages in thread
From: tip-bot for Linus Walleij @ 2016-12-20  9:35 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: dmitry.torokhov, peterz, tglx, mingo, jic23, linux-kernel,
	linus.walleij, hpa, andriy.shevchenko, torvalds

Commit-ID:  634b847b6d232f861abd5a03a1f75677f541b156
Gitweb:     http://git.kernel.org/tip/634b847b6d232f861abd5a03a1f75677f541b156
Author:     Linus Walleij <linus.walleij@linaro.org>
AuthorDate: Wed, 14 Dec 2016 14:39:54 +0100
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Tue, 20 Dec 2016 09:37:15 +0100

x86/platform/intel-mid: Switch MPU3050 driver to IIO

The Intel Mid goes in and creates a I2C device for the
MPU3050 if the input driver for MPU-3050 is activated.

As of commit:

  3904b28efb2c ("iio: gyro: Add driver for the MPU-3050 gyroscope")

.. there is a proper and fully featured IIO driver for this
device, so deprecate the use of the incomplete input driver
by augmenting the device population code to react to the
presence of the IIO driver's Kconfig symbol instead.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1481722794-4348-1-git-send-email-linus.walleij@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 arch/x86/platform/intel-mid/device_libs/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/platform/intel-mid/device_libs/Makefile b/arch/x86/platform/intel-mid/device_libs/Makefile
index dd6cfa4..61b5ed2 100644
--- a/arch/x86/platform/intel-mid/device_libs/Makefile
+++ b/arch/x86/platform/intel-mid/device_libs/Makefile
@@ -19,7 +19,7 @@ obj-$(subst m,y,$(CONFIG_SPI_SPIDEV)) += platform_spidev.o
 # I2C Devices
 obj-$(subst m,y,$(CONFIG_SENSORS_EMC1403)) += platform_emc1403.o
 obj-$(subst m,y,$(CONFIG_SENSORS_LIS3LV02D)) += platform_lis331.o
-obj-$(subst m,y,$(CONFIG_INPUT_MPU3050)) += platform_mpu3050.o
+obj-$(subst m,y,$(CONFIG_MPU3050_I2C)) += platform_mpu3050.o
 obj-$(subst m,y,$(CONFIG_INPUT_BMA150)) += platform_bma023.o
 obj-$(subst m,y,$(CONFIG_DRM_MEDFIELD)) += platform_tc35876x.o
 # I2C GPIO Expanders

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

end of thread, other threads:[~2016-12-20  9:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-14 13:39 [PATCH] x86/platform/intel-mid: switch MPU3050 driver to IIO Linus Walleij
2016-12-14 15:12 ` Andy Shevchenko
2016-12-20  7:59 ` [tip:x86/urgent] x86/platform/intel-mid: Switch " tip-bot for Linus Walleij
2016-12-20  9:35 ` tip-bot for Linus Walleij

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).