From patchwork Fri Oct 21 13:58:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Mitja_=C5=A0pes?= X-Patchwork-Id: 13014864 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A0CBC43219 for ; Fri, 21 Oct 2022 13:59:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231277AbiJUN7R (ORCPT ); Fri, 21 Oct 2022 09:59:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231273AbiJUN7Q (ORCPT ); Fri, 21 Oct 2022 09:59:16 -0400 Received: from dhl.lxnav.com (dhl.lxnav.com [IPv6:2a01:4f8:c010:2f07::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A511F248CC; Fri, 21 Oct 2022 06:59:15 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 468B54068A; Fri, 21 Oct 2022 15:59:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lxnav.com; s=dhl; t=1666360753; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=E0chd1q6hzKQGh6t8MfjA2PP7ck8kcunC61vNoOu1bQ=; b=YFjNbhV1o9JsIHr6QTAw+g9a+TnJBlBfioe5XsuKZTh1iQwO7xZNuE9v+qywSchp0VALOZ MsyZ1QdMyiRSBnHkLRuJXTYR86R8tfL0qsI197dHbsAYkXCQtTcV3T4OAffCekVlONb3M7 XmXKs2jgJXVaiMOEekeIsw0KOdlhk02S3G9NWg9Y45ovLsc7JWziRMP4WXhy0mIGD8xarE WykfK5Z89MI6sT/Hq6vjbs7i57s+BZwHrRyOamWDa+y75a0JhrNi8PCvizrDzL+mNjovNk 0NqZ/n69Tl5bGMREgq9Dma0zdcxe0K6kDUH3FXRDAGhjBPodiqq415jDDV/nvw== From: Mitja Spes Cc: Mitja Spes , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Andy Shevchenko , Marc Kleine-Budde , Lee Jones , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Tomasz Duszynski , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] ms5611 sensor value bug fix; dt-binding fix Date: Fri, 21 Oct 2022 15:58:19 +0200 Message-Id: <20221021135827.1444793-1-mitja@lxnav.com> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Subject: [PATCH 0/3] ms5611 sensor value bug fix; dt-binding fix The first patch fixes a bug in ms5611 iio driver where PROM value compensation table was overwritten by the last initialized sensor. This in turn produced wrong values when multiple sensors were used. Second patch removes the hardcoded SPI frequency and uses the setting from dt-bindings. Third patch outlines the change from the second patch in the bindings example. v2: [PATCH 1-2] * no change [PATCH 3] * corrected patch subject Mitja Spes (3): iio: pressure: ms5611: fixed value compensation bug iio: pressure: ms5611: changed hardcoded SPI speed to value limited dt-bindings: iio: pressure: meas,ms5611: add max SPI frequency to the example .../bindings/iio/pressure/meas,ms5611.yaml | 1 + drivers/iio/pressure/ms5611.h | 12 ++--- drivers/iio/pressure/ms5611_core.c | 51 ++++++++++--------- drivers/iio/pressure/ms5611_spi.c | 2 +- 4 files changed, 33 insertions(+), 33 deletions(-)