Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp803554rda; Sun, 22 Oct 2023 10:23:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFov/riYjHdBYUR5lY/izX3K3HhgKu12OaePfLZYXd5e+QIwSzjsC9TXz/otFIkM7tUUmQb X-Received: by 2002:a05:6a20:4295:b0:17c:c278:bcb6 with SMTP id o21-20020a056a20429500b0017cc278bcb6mr5668974pzj.29.1697995402143; Sun, 22 Oct 2023 10:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697995401; cv=none; d=google.com; s=arc-20160816; b=WSElndwy+6c9ouVNtatv8a/dEMuK2FJsFe+AEEQJwg+OGZH9LwyhLipXZVVeshFgsL IpGBAcvmuhbn0esHaIgAy7vME+tvMjBiKqQNYh+CNTIOC8HJuXTE7zmC55S448sgvSaq pc6jpDCdQYuC8ylXVpvadZZjvCMrNtfo4eAZ0U1saXswrNUqceOoVVPwyqTVxqfEBiOk On3H/Zo4LmRJMKk8tNVcoMkaPw8aqiArYu3E5kec45v8ppyhT+bsTixIJbaH0aI5PRYI 8bTit3AKfEwte7MlI5RS7Tz99o24JpV6nuwodpzL+ztCwtpvE4vb8qwiz7UB587zOKXG OGcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=0JIMYJiPAhT+0FE33ih8JeSS7Sn9JxWUSKEOWy99FSI=; fh=yZ52DOsA3C9RNbqaGkXX2xj1bFcR9V6RUKy+P8EqFPk=; b=KSMoX8ejgKx+BhxY9SQC/E8Mg/7rsCfoEwJG/pVh4yIv1kaY3Wt+HWMMRAsABA/IDH 54psG9DNjoinuqRtK8GdzYve5eQXaGwARhfSd2aDQvJMyGfi83Ms8i9itFEr8GRKHMw3 mO5+XeWum9rQjQZPQFChxN7tzbQDSvaTlmQ0ppT3H3wtHpzx/BlAWe6av7Ro7JX77xUf aFBwIapfDC4llS4RZlaYy/dyOBD4bHSLNmJypBsvOPRYvISh3kfD7usVbdTlu49+c1hN wVImuWZ8g/hbLHq9T/WqaeqlIhxM5vuq7jIUByNU8c8ieSk1AUA8z33/1eFb38ZGnuCu PRfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IluLLykU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id v202-20020a6361d3000000b005891f742957si5094951pgb.570.2023.10.22.10.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 10:23:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IluLLykU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id DD464806AFD7; Sun, 22 Oct 2023 10:23:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232209AbjJVRXJ (ORCPT + 99 others); Sun, 22 Oct 2023 13:23:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232536AbjJVRXG (ORCPT ); Sun, 22 Oct 2023 13:23:06 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40CC7C5; Sun, 22 Oct 2023 10:23:04 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-32dbbf3c782so2054810f8f.1; Sun, 22 Oct 2023 10:23:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697995382; x=1698600182; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0JIMYJiPAhT+0FE33ih8JeSS7Sn9JxWUSKEOWy99FSI=; b=IluLLykUOTDD+psrEuJJ8qtzVvZF/MzqDimXxmIfyODi5bzZbbXAF0ctnQ/vYUHfyw 4bqQFhKbu+uJ5DCiai/VoN60QQs67IW+Am9okn3lwlryXf/EdPT7nLoeP+0Ad/K5iKfs PqlZHnji00mLReu5fBu/Db4y6B6VElbDGNeyZEJgfAHAJXTC8lnn+pVyMdvXi9hi8KvS Ass7JE1UPReShaRs0YTqI36CbZ0MRDV2J6k9TdnlyaHJbCr+e5MCy30Vp7uHcoQx02ve 8uBy2o7H9YGx4YkjLUaUHztB9hRhH8Ucq2Gn5OXRtjEkHiC6bmc3udDv65yD/XUK1JK8 sQPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697995382; x=1698600182; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0JIMYJiPAhT+0FE33ih8JeSS7Sn9JxWUSKEOWy99FSI=; b=ObDT6kDyHKOMAVy0z+qhWsxFFPl8pJKBS8wU3sH733k7mR2jVvk5FpoR5M8jWStvx3 6pLFwi0JTuuY4FE+lASv8rt9ClZvV+sSmIjx8Ns9sUiqUt4/7gblKRDFJVqO/JB5riYk Qe3VThlEc4mKPSBFC1+xcFTTIQojf0zZK8obsCZqCOr5UBDvIYU6SP2Xt20jMfB4RSu7 pUbV/OZTBerMfgnXy9Bh4mDM4lE4OYVidCEE4bO7H2DxWI1PoQzp3VBglRT5bv1H5nbc LpbiC2j7RorHON5b9W05vltpUrOxKRTGescNeFotV3079I7TNaFq686RbX5S9Vw9dtM6 linA== X-Gm-Message-State: AOJu0YzK8d8U7wIBs5XUrkqNpJiSqwcmNNZvZYiUPELi4wPKS96S+Cs2 aqt2v+cFaN09Wj68Nq1jxXsZQJUZ+sA= X-Received: by 2002:adf:ed0e:0:b0:31f:afeb:4e7d with SMTP id a14-20020adfed0e000000b0031fafeb4e7dmr6504824wro.18.1697995381896; Sun, 22 Oct 2023 10:23:01 -0700 (PDT) Received: from toolbox.taileb357.ts.net (13.red-83-35-58.dynamicip.rima-tde.net. [83.35.58.13]) by smtp.gmail.com with ESMTPSA id o12-20020adfe80c000000b0032da49e18fasm6043836wrm.23.2023.10.22.10.23.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 10:23:01 -0700 (PDT) From: Angel Iglesias To: linux-iio@vger.kernel.org Cc: Biju Das , linux-kernel@vger.kernel.org, Angel Iglesias , Jonathan Cameron , Lars-Peter Clausen , Andy Shevchenko , Phil Elwell , Linus Walleij , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Subject: [PATCH v2 0/5] Add support for BMP390 and various driver cleanups Date: Sun, 22 Oct 2023 19:22:16 +0200 Message-ID: X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sun, 22 Oct 2023 10:23:18 -0700 (PDT) Add support for the Bosch BMP390 pressure sensors and includes minor driver code cleanups. Patches 1 and 2 update I2C and SPI driver matching logic using newer helper functions available. Patch 3 fixes minor coding style incoherences. Patches 4 and 5 introduce support for the new BMP390 sensor allowing sensor families to have a list of known device IDs to improve detection This patch series is aggregates patches from various series: https://lore.kernel.org/all/20230812175808.236405-1-biju.das.jz@bp.renesas.com/ https://lore.kernel.org/all/cover.1691952005.git.ang.iglesiasg@gmail.com/ https://lore.kernel.org/all/cover.1692805377.git.ang.iglesiasg@gmail.com/ Changes in v2: - Dropped unnecessary register reorder in patch 3. - Simplified error reporting on patch 4 avoiding string memallocs. - Added fallback logic on patch 4 to follow firmware configuration whether device ID matches with any of the known devices IDs. Angel Iglesias (4): iio: pressure: bmp280: Use spi_get_device_match_data() iio: pressure: bmp280: Rearrange vars in reverse xmas tree order iio: pressure: bmp280: Allow multiple chips id per family of devices iio: pressure: bmp280: Add support for BMP390 Biju Das (1): iio: pressure: bmp280: Use i2c_get_match_data() drivers/iio/pressure/bmp280-core.c | 38 +++++++++++++++++++++++------- drivers/iio/pressure/bmp280-i2c.c | 8 +++---- drivers/iio/pressure/bmp280-spi.c | 10 +++----- drivers/iio/pressure/bmp280.h | 4 +++- 4 files changed, 38 insertions(+), 22 deletions(-) base-commit: 89e2233386a5670d15908628b63e611cb03b0d03 -- 2.42.0