From patchwork Tue Sep 10 12:49:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 19887 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EC473246A4 for ; Tue, 10 Sep 2013 12:50:23 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id 10sf7947939ied.2 for ; Tue, 10 Sep 2013 05:50:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=399F2kXDrIgH9fr7rbeXkDR5hnoJmqWKmGHC0tMpN+k=; b=iRfk0dhpTZNPIOoGQ97zU2N4I4c2tdNEOEZl5NTFeAVq94UHuv6FmQZzh29VhQ645N qsTTP9+UQ8L7OaBxdgRVqW0hKjePCLxsHkTIhdryZu0SXODBjAVZ9jReEYBMBClN9/fm 8SM6DjSu3LWrP01NkcNuUd0p7XhkCt/DfeNZ8Cm/fw8aw2ebURRYQvO1yIMEMnRLodCN y6m4aW4PziBDOwof/PfXU7gnnczr73k232lwD0skhI/450quPOae9eOvM0/4rVhdEhhA qf/GDrznKoTL32MsXJoWcP+IbpCNV4DUWWUnYLYLTTLk8dmXe37mDW/IZ4HM/Sbwhinc 4b6Q== X-Received: by 10.182.66.5 with SMTP id b5mr4434491obt.0.1378817423495; Tue, 10 Sep 2013 05:50:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.29.129 with SMTP id k1ls2120938qeh.75.gmail; Tue, 10 Sep 2013 05:50:23 -0700 (PDT) X-Received: by 10.220.88.13 with SMTP id y13mr7214918vcl.20.1378817423171; Tue, 10 Sep 2013 05:50:23 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id ur9si4412649veb.3.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 05:50:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id ia10so4853781vcb.20 for ; Tue, 10 Sep 2013 05:50:23 -0700 (PDT) X-Gm-Message-State: ALoCoQmUmnokRbdmIl2NNAyJm3EUW9HFkM6RPMymjioBn02eb+nlcG+nBCoEv/Pj4OzY0JsaSK1S X-Received: by 10.220.74.69 with SMTP id t5mr10467328vcj.18.1378817423077; Tue, 10 Sep 2013 05:50:23 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp19414vcz; Tue, 10 Sep 2013 05:50:22 -0700 (PDT) X-Received: by 10.14.210.8 with SMTP id t8mr38558348eeo.39.1378817419552; Tue, 10 Sep 2013 05:50:19 -0700 (PDT) Received: from mail-ee0-f47.google.com (mail-ee0-f47.google.com [74.125.83.47]) by mx.google.com with ESMTPS id x42si14851038eel.116.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 05:50:19 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.83.47 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.83.47; Received: by mail-ee0-f47.google.com with SMTP id d49so3824688eek.6 for ; Tue, 10 Sep 2013 05:50:18 -0700 (PDT) X-Received: by 10.14.9.72 with SMTP id 48mr12941371ees.42.1378817418852; Tue, 10 Sep 2013 05:50:18 -0700 (PDT) Received: from localhost.localdomain (cpc15-aztw25-2-0-cust493.aztw.cable.virginmedia.com. [92.233.57.238]) by mx.google.com with ESMTPSA id z12sm31123277eev.6.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 05:50:18 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jic23@cam.ac.uk Cc: arnd@arndb.de, linus.walleij@linaro.org, denis.ciocca@st.com, linux-iio@vger.kernel.org, Lee Jones Subject: [PATCH 32/38] iio: accel-core: st: Move LSM303DLH into correct group Date: Tue, 10 Sep 2013 13:49:33 +0100 Message-Id: <1378817379-8238-33-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1378817379-8238-1-git-send-email-lee.jones@linaro.org> References: <1378817379-8238-1-git-send-email-lee.jones@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The LSM303DLH's WAI (WhoAmI) is 0x33, meaning it should be enabled by Accel Sensor group one. For the device to probe without error, we'll need to ensure it's registered with the correct WAI. Signed-off-by: Lee Jones --- drivers/iio/accel/st_accel_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/accel/st_accel_core.c b/drivers/iio/accel/st_accel_core.c index ea62291..03a2b6b 100644 --- a/drivers/iio/accel/st_accel_core.c +++ b/drivers/iio/accel/st_accel_core.c @@ -170,6 +170,7 @@ static const struct st_sensors st_accel_sensors[] = { [2] = LSM330D_ACCEL_DEV_NAME, [3] = LSM330DL_ACCEL_DEV_NAME, [4] = LSM330DLC_ACCEL_DEV_NAME, + [5] = LSM303DLH_ACCEL_DEV_NAME, }, .ch = (struct iio_chan_spec *)st_accel_12bit_channels, .odr = { @@ -238,8 +239,7 @@ static const struct st_sensors st_accel_sensors[] = { .sensors_supported = { [0] = LIS331DLH_ACCEL_DEV_NAME, [1] = LSM303DL_ACCEL_DEV_NAME, - [2] = LSM303DLH_ACCEL_DEV_NAME, - [3] = LSM303DLM_ACCEL_DEV_NAME, + [2] = LSM303DLM_ACCEL_DEV_NAME, }, .ch = (struct iio_chan_spec *)st_accel_12bit_channels, .odr = {