From patchwork Fri Oct 26 02:38:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kelly X-Patchwork-Id: 10656897 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 272A313A4 for ; Fri, 26 Oct 2018 02:38:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 176AA2BF82 for ; Fri, 26 Oct 2018 02:38:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 08E762BFD0; Fri, 26 Oct 2018 02:38:25 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 B38E52BF82 for ; Fri, 26 Oct 2018 02:38:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726075AbeJZLNc (ORCPT ); Fri, 26 Oct 2018 07:13:32 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46961 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726113AbeJZLNb (ORCPT ); Fri, 26 Oct 2018 07:13:31 -0400 Received: by mail-pg1-f196.google.com with SMTP id a5-v6so4038557pgt.13 for ; Thu, 25 Oct 2018 19:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martingkelly-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RKDFQvcoe7QpHbAUeFMuxU6Q34CyWX+TGTjQ0U3Xbik=; b=dogY3DxZEvBqNdsZvFc5Uy+vHDZSlyAaIwT52eG4EJVhv2K4bPMAzD7+Rg11pF7IgQ 1sBBpbfV16H+ZFb0SUFYQbfESMxO+J1tdYV6UIb7aVQVu5yaXsaXfrmlWaAPifxRw2jI YTXtc7WjD6+5yjVB8Kg7cNWwqPigMwUCg1ZJY9Zspqd71+ag6Vyq03YNocnaH3KRQwYr a0vK5JP4uFOCCs8nq0Z5qad+MzJBuxIcRmSwhYwHt6PuwPJCxfyPBpikZ8pQ/QZnwbUn lq/DrV+HxOz1JymsUDorLGlIKM+/RX11kFIdRfI1AXmYqx/s8+5OT//PkBBHPGTjI1Nm 3nIg== 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=RKDFQvcoe7QpHbAUeFMuxU6Q34CyWX+TGTjQ0U3Xbik=; b=BJR/J19OuTGtkjcLSq1v9ib89nWqFJXtL89k7wYX2HPYr3Asuy+29vN0UJsge2MfJZ NyiehS4iFrpMQKEth6kY3Xh3Sfx1oMvxGzEzMwQhJfAoZZ6Avm6OzH0LEBCz0mM4ci9q QuH1qXS+WCSKwuE5Ila7O6hs5qes8BUbnipAZll/uL0ncY4vVZL4ZWWaVg2JqGDGji9a KbdR5rvHfFhCWN8Uil+sk9n6bC8evMyLHpeypH9YMFZRSKgf6Zj6sDSYqeA3ydzZxuxq bzd9jd5EIr72/LOlK7QH+Kn7Tyt0kV/EucYJ6vRvHN68VCrs9/ttFwUdzD3i9iziS/QS xqvQ== X-Gm-Message-State: AGRZ1gI5vLDeMsFcPXSkxMUMlxTczUS0IcV3auO3AARVlWLO14GqQ1Xs mjM1zzpudzcV2UgKkVnRTHgWjs0X2jbDEA== X-Google-Smtp-Source: AJdET5e6OtaPtztYn/q1EG2Ys2PBHsi/9v6c2j5uIaHkEchEBj7t3PGvZ+0q6EflxsOV/5DkPZaOAg== X-Received: by 2002:a63:3287:: with SMTP id y129mr1688699pgy.337.1540521502961; Thu, 25 Oct 2018 19:38:22 -0700 (PDT) Received: from cascade.Home (71-212-17-184.tukw.qwest.net. [71.212.17.184]) by smtp.gmail.com with ESMTPSA id r184-v6sm17410120pfc.5.2018.10.25.19.38.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 19:38:22 -0700 (PDT) From: Martin Kelly X-Google-Original-From: Martin Kelly , Denis Ciocca , Jonathan Cameron , Rob Herring , Martin Kelly Subject: [PATCH v2 3/4] iio:magnetometer: st_magn: add BDU settings Date: Thu, 25 Oct 2018 19:38:11 -0700 Message-Id: <20181026023812.29720-3-martin@martingkelly.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181026023812.29720-1-martin@martingkelly.com> References: <20181026023812.29720-1-martin@martingkelly.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 From: Martin Kelly LIS3MDL and LSM9DS1 are missing BDU settings in their register maps, so add them. I don't have a LIS3MDL sensor to test, but this works correctly on the LSM9DS1, which has the same register map. Signed-off-by: Martin Kelly --- drivers/iio/magnetometer/st_magn_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c index a186b844d664..370b93db528d 100644 --- a/drivers/iio/magnetometer/st_magn_core.c +++ b/drivers/iio/magnetometer/st_magn_core.c @@ -316,6 +316,10 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = { }, }, }, + .bdu = { + .addr = 0x24, + .mask = 0x40, + }, .drdy_irq = { /* drdy line is routed drdy pin */ .stat_drdy = {