From patchwork Sat Sep 23 19:10:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 9967609 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 405CA602D8 for ; Sat, 23 Sep 2017 19:11:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A9692945B for ; Sat, 23 Sep 2017 19:11:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F4632946F; Sat, 23 Sep 2017 19:11:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E26692945B for ; Sat, 23 Sep 2017 19:10:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751521AbdIWTK7 (ORCPT ); Sat, 23 Sep 2017 15:10:59 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33316 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751552AbdIWTK6 (ORCPT ); Sat, 23 Sep 2017 15:10:58 -0400 Received: by mail-wm0-f67.google.com with SMTP id m127so3928371wmm.0 for ; Sat, 23 Sep 2017 12:10:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=l6hQIjd6+GAFnWKbtLEf+WRXsVBB2TVIKWo6P5Muv38=; b=aAMq9gczmPY4mE5m2r5jkWxcmNsCrD4SWrChy3wawIm0TzxJVZTO2PWeXHCSYSj55B cgxx5HtMUq2bo46AZRcV41fM5umIy3HZKirxCsMWH9q3oRFaYiG63tQbYXyPIhh0M6JC SKZyWLlD6Un1uuhxUYCb6A4IokVmj0tTQ6DXaL4wsAYBV1SMDO4JDI6wp23iPphKFXoP dtAlbecFlywemiJyYHj4Ra1nl89XPLJMNxCOClSjbXavD43ZShip+mDQQaAUARBWxrob E/UHwn+dn1gJ+OGVGVrjLYQNQ9shK+SE9VnBKq9MOTyUytWmo32XzgS8fQKs25s0IVtK cgUg== 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:in-reply-to :references; bh=l6hQIjd6+GAFnWKbtLEf+WRXsVBB2TVIKWo6P5Muv38=; b=m+hEe+EdV5LkM4Q8r5pJl8t5A4TUfuXiu9xNOe91D+91TkQqGqPDx4p4zWeuw4cLjT gvBeAMokO5xa0/mpf4MIVSKu13j0ESwd5XoUFWmL9SlqMBYjdYNFXrUiF7q5FTzj2wzd 2/UKxaQ5ZlfFDcdMsnluHBlmF08pjpcHSLIdEGdJC8V2CQE+9ApWiue1BTD8rOH4+jWj 8LojUrL3KMZzZDDn9XbaQJTgD5HCYdniPiNPLPI1uZw3WZ021WVp9m9pR2oT/Ivh7VhA k3NoNfrohh8APJtovdU2uycwjPyqNREWPqm73Am/ffNxuimQETAIpo57kpXQSBpHXtJ1 r83Q== X-Gm-Message-State: AHPjjUjITcsp0Cas9MEl5I04PyDEu14urB+wNVo1jtDVLQ91qqpLoZ+m XubqDJV2ofQza2mNZGl2u0px2g== X-Google-Smtp-Source: AOwi7QA+BOQHWoypVy509IWITaPFckSyQ6PSpMXiVUtcSnXvapysC7pKnnjQgEYw3dtfr/tgQANLkA== X-Received: by 10.28.159.6 with SMTP id i6mr7039583wme.119.1506193857463; Sat, 23 Sep 2017 12:10:57 -0700 (PDT) Received: from localhost.localdomain ([151.66.56.134]) by smtp.gmail.com with ESMTPSA id n9sm3721770wmd.12.2017.09.23.12.10.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 23 Sep 2017 12:10:56 -0700 (PDT) From: Lorenzo Bianconi X-Google-Original-From: Lorenzo Bianconi To: jic23@kernel.org Cc: linux-iio@vger.kernel.org, lorenzo.bianconi@st.com Subject: [PATCH 2/2] iio: imu: st_lsm6dsx: remove rounding configuration Date: Sat, 23 Sep 2017 21:10:52 +0200 Message-Id: <20170923191052.14419-3-lorenzo.bianconi@st.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170923191052.14419-1-lorenzo.bianconi@st.com> References: <20170923191052.14419-1-lorenzo.bianconi@st.com> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove rounding configuration since it is enabled by default for the FIFO output registers Signed-off-by: Lorenzo Bianconi --- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c index 37d6e324ae74..debf4064f474 100644 --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c @@ -54,8 +54,6 @@ #define ST_LSM6DSX_REG_BDU_MASK BIT(6) #define ST_LSM6DSX_REG_INT2_ON_INT1_ADDR 0x13 #define ST_LSM6DSX_REG_INT2_ON_INT1_MASK BIT(5) -#define ST_LSM6DSX_REG_ROUNDING_ADDR 0x16 -#define ST_LSM6DSX_REG_ROUNDING_MASK BIT(2) #define ST_LSM6DSX_REG_ACC_ODR_ADDR 0x10 #define ST_LSM6DSX_REG_ACC_ODR_MASK GENMASK(7, 4) @@ -611,11 +609,6 @@ static int st_lsm6dsx_init_device(struct st_lsm6dsx_hw *hw) if (err < 0) return err; - err = st_lsm6dsx_write_with_mask(hw, ST_LSM6DSX_REG_ROUNDING_ADDR, - ST_LSM6DSX_REG_ROUNDING_MASK, 1); - if (err < 0) - return err; - /* enable FIFO watermak interrupt */ err = st_lsm6dsx_get_drdy_reg(hw, &drdy_int_reg); if (err < 0)