From patchwork Wed Dec 14 13:39:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 88026 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp199605qgi; Wed, 14 Dec 2016 05:40:04 -0800 (PST) X-Received: by 10.99.145.74 with SMTP id l71mr184149910pge.128.1481722803998; Wed, 14 Dec 2016 05:40:03 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g28si52899939pfk.140.2016.12.14.05.40.03; Wed, 14 Dec 2016 05:40:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755993AbcLNNkA (ORCPT + 25 others); Wed, 14 Dec 2016 08:40:00 -0500 Received: from mail-qt0-f170.google.com ([209.85.216.170]:35677 "EHLO mail-qt0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754789AbcLNNj6 (ORCPT ); Wed, 14 Dec 2016 08:39:58 -0500 Received: by mail-qt0-f170.google.com with SMTP id c47so22468961qtc.2 for ; Wed, 14 Dec 2016 05:39:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=msfL7KJLAdaDDyC5RI9M/UnWppUkL0Fe2WK3eFa+i/c=; b=fXDtIVCWbXf9aKRXyhJ/6u7dIO573YrtwO1xXqRN1EdsCvuUUPlxorPeowJgb6QQ+q ckniKlwMbO0RBMrk32Kt6kv+oHDXpGMZg0LbDFj1YQI2m2EfyGWweavJPMeGYFblCrjW LiNAv3dXhrmNHSbu8zQtefV1EskrAmNpMMoEc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=msfL7KJLAdaDDyC5RI9M/UnWppUkL0Fe2WK3eFa+i/c=; b=fuoWe7YPjq3vlTOorrm6+5KV/0O8Gj+AI4EIO7plGTXHySxqRmNZXLJlR4wtsh7idK ovGY1M6y8oBHo8+k5ITC+yTYSR2qK+48jpqS70C1UOzmFfWsCxVOKPahwhDvO30jknro bdeQAzmUZJdwgFNpInsgaD8uzImy2j5AViA7eAiapH0ewB3eXxluXyW9e78Q9uLiaXhE wKKN8mxPgiYDda8DsdhadE+8QzXAUYAfj0xaPDUQE30EwrdQ9D7WTS++tTej5YjURiLu 7iYwJSdpXLav5aSL+c3bnv9DBSqoREOuPDFejgUhSAUDZBz40Tcyv/eenk2pQvaQlHqn vOtA== X-Gm-Message-State: AKaTC00ClSmCWqwunzr0N/QA2OXq3GIiy4gWske1SSTWyrdb+ZJ9GNfGE162JWQtkQHenHdO X-Received: by 10.25.44.66 with SMTP id s63mr34924626lfs.159.1481722797401; Wed, 14 Dec 2016 05:39:57 -0800 (PST) Received: from linuslaptop.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id 5sm10761212ljf.18.2016.12.14.05.39.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Dec 2016 05:39:56 -0800 (PST) From: Linus Walleij To: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" Cc: linux-kernel@vger.kernel.org, Linus Walleij , Dmitry Torokhov , Jonathan Cameron , Andy Shevchenko Subject: [PATCH] x86/platform/intel-mid: switch MPU3050 driver to IIO Date: Wed, 14 Dec 2016 14:39:54 +0100 Message-Id: <1481722794-4348-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Linus Walleij --- arch/x86/platform/intel-mid/device_libs/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 Acked-by: Andy Shevchenko 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