From patchwork Tue Sep 10 12:49:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 19892 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6328825E85 for ; Tue, 10 Sep 2013 12:50:29 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wc20sf27389906obb.1 for ; Tue, 10 Sep 2013 05:50:28 -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=m33o3gxolB94Mej4Cau/wCC9Z4ErXakvGcPtB0r7pos=; b=PsBaY3ewdHUHiHs7xNAK3yX3VC1VhjqKpbqQjXuA6bMKDCQAI6nYtt9mq6YW986iBd jhXdLroF+vwzMvdK271r0QTck0JaZcR47c7AMMsQIL/7HvkYe2jT47GD5H9+K1sNGy2G lrhqVISYeFrxb+QT81P8PwL5Teoy3lx5SZFZyuNuNza0n2dHMRPw+Wg7aPrMLtKFnfKO aWTRqmvhEcOnjyd/vNZxNUaTZpItMjwLh4NfmyJ+BFn08CganPnBrNLasnuizX8u/GDN A+gPoAgmEmgxbQgZdFjUphlqqPGk0rSRLBWE0O43Z5cQ+Nh+lak2EoaHK8v+PdtwUTkH ue1A== X-Received: by 10.182.66.193 with SMTP id h1mr53117obt.47.1378817428846; Tue, 10 Sep 2013 05:50:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.108.230 with SMTP id hn6ls90082qeb.81.gmail; Tue, 10 Sep 2013 05:50:28 -0700 (PDT) X-Received: by 10.221.47.193 with SMTP id ut1mr22766113vcb.8.1378817428519; Tue, 10 Sep 2013 05:50:28 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id k11si4398849vcm.73.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 05:50:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.170 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.170; Received: by mail-vc0-f170.google.com with SMTP id kw10so5180629vcb.1 for ; Tue, 10 Sep 2013 05:50:28 -0700 (PDT) X-Gm-Message-State: ALoCoQn+0LkJD5DPVJHM3D+xkzORzOstLWh2QcUdE6B6D4iAgqmE1r4RLya8yBk1YADNORWgo9/j X-Received: by 10.58.211.227 with SMTP id nf3mr7164465vec.20.1378817428435; Tue, 10 Sep 2013 05:50:28 -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 u4csp19426vcz; Tue, 10 Sep 2013 05:50:27 -0700 (PDT) X-Received: by 10.14.104.199 with SMTP id i47mr122801eeg.85.1378817425103; Tue, 10 Sep 2013 05:50:25 -0700 (PDT) Received: from mail-ea0-f175.google.com (mail-ea0-f175.google.com [209.85.215.175]) by mx.google.com with ESMTPS id o7si14839382eep.168.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 05:50:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.175 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.215.175; Received: by mail-ea0-f175.google.com with SMTP id m14so3867431eaj.34 for ; Tue, 10 Sep 2013 05:50:24 -0700 (PDT) X-Received: by 10.15.77.199 with SMTP id p47mr12078300eey.50.1378817424238; Tue, 10 Sep 2013 05:50:24 -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:23 -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 38/38] iio: magn-core: st: Provide support for the LSM303DLH Date: Tue, 10 Sep 2013 13:49:39 +0100 Message-Id: <1378817379-8238-39-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.170 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: , Trivial patch adding the LSM303DLH to the list of already supported Magnetometer Sensors. Signed-off-by: Lee Jones --- drivers/iio/magnetometer/st_magn.h | 1 + drivers/iio/magnetometer/st_magn_core.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/iio/magnetometer/st_magn.h b/drivers/iio/magnetometer/st_magn.h index f185720..19b53e3 100644 --- a/drivers/iio/magnetometer/st_magn.h +++ b/drivers/iio/magnetometer/st_magn.h @@ -15,6 +15,7 @@ #include #define LSM303DLHC_MAGN_DEV_NAME "lsm303dlhc_magn" +#define LSM303DLH_MAGN_DEV_NAME "lsm303dlh_magn" #define LSM303DLM_MAGN_DEV_NAME "lsm303dlm_magn" #define LIS3MDL_MAGN_DEV_NAME "lis3mdl_magn" diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c index 12e7e79..b2e2917 100644 --- a/drivers/iio/magnetometer/st_magn_core.c +++ b/drivers/iio/magnetometer/st_magn_core.c @@ -151,7 +151,8 @@ static const struct st_sensors st_magn_sensors[] = { .wai = ST_MAGN_1_WAI_EXP, .sensors_supported = { [0] = LSM303DLHC_MAGN_DEV_NAME, - [1] = LSM303DLM_MAGN_DEV_NAME, + [1] = LSM303DLH_MAGN_DEV_NAME, + [0] = LSM303DLM_MAGN_DEV_NAME, }, .ch = (struct iio_chan_spec *)st_magn_16bit_channels, .odr = {