From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756283AbcLNPMP (ORCPT ); Wed, 14 Dec 2016 10:12:15 -0500 Received: from mga04.intel.com ([192.55.52.120]:39754 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755544AbcLNPMN (ORCPT ); Wed, 14 Dec 2016 10:12:13 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,347,1477983600"; d="scan'208";a="1099084785" Message-ID: <1481728325.9552.0.camel@linux.intel.com> Subject: Re: [PATCH] x86/platform/intel-mid: switch MPU3050 driver to IIO From: Andy Shevchenko To: Linus Walleij , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" Cc: linux-kernel@vger.kernel.org, Dmitry Torokhov , Jonathan Cameron Date: Wed, 14 Dec 2016 17:12:05 +0200 In-Reply-To: <1481722794-4348-1-git-send-email-linus.walleij@linaro.org> References: <1481722794-4348-1-git-send-email-linus.walleij@linaro.org> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.3-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Cc: Jonathan Cameron > Cc: Andy Shevchenko Acked-by: Andy Shevchenko > Signed-off-by: Linus Walleij > --- >  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 Intel Finland Oy