Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757475Ab3IPLLY (ORCPT ); Mon, 16 Sep 2013 07:11:24 -0400 Received: from mail-ee0-f52.google.com ([74.125.83.52]:43023 "EHLO mail-ee0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753170Ab3IPLLW (ORCPT ); Mon, 16 Sep 2013 07:11:22 -0400 Date: Mon, 16 Sep 2013 12:11:18 +0100 From: Lee Jones To: Denis CIOCCA Cc: Jonathan Cameron , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "jic23@cam.ac.uk" , "arnd@arndb.de" , "linus.walleij@linaro.org" , "linux-iio@vger.kernel.org" Subject: Re: [PATCH 38/38] iio: magn-core: st: Provide support for the LSM303DLH Message-ID: <20130916111118.GM3999@lee--X1> References: <1378817379-8238-1-git-send-email-lee.jones@linaro.org> <1378817379-8238-39-git-send-email-lee.jones@linaro.org> <5234A28D.1030409@kernel.org> <20130916073151.GB3999@lee--X1> <5236D03D.2030506@st.com> <20130916100809.GI3999@lee--X1> <5236DADD.3040205@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5236DADD.3040205@st.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1053 Lines: 25 On Mon, 16 Sep 2013, Denis CIOCCA wrote: > Hi Lee, > > > The driver mentions that the first group of sensors have a WAI of > > 0x3c: #define ST_MAGN_1_WAI_EXP 0x3c And when I print out the WAI read > > from the device: Requested device: lsm303dlh_magn - read WAI: 0x3c I > > guess I could have been lied to again by the board's datasheet again > > and the attached device isn't actually a LSM303DLH, but how can I tell > > for sure? > On LSM303DLH you have to read 0x0a 0x0b and 0x0c registers, you have to > find 0x48, 0x34 and 0x33. I think in the snowball there is the LSM303DLHC. I'm inclined to agree with you. I'll make the necessary changes. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/