Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1920017lql; Wed, 13 Mar 2024 11:51:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXqBZAgsKtRNezSPpGEBWG7Vi0PFO/PdbF9P/fzKe9K6QwRzB0QB1b0o8nwQ53Smn2pn07LOvVvHS8f9YkpuSW9tjSvqQgC5BfLCTkIEw== X-Google-Smtp-Source: AGHT+IG3NJQG4lss8SnLJm4E4nYJIei9Nx02cTgVFkIOUHU0cT/nY3fFOr3wKeXnFlAshSP4ahoM X-Received: by 2002:a05:6a20:2a11:b0:1a1:87df:beef with SMTP id e17-20020a056a202a1100b001a187dfbeefmr4414060pzh.19.1710355914874; Wed, 13 Mar 2024 11:51:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710355914; cv=pass; d=google.com; s=arc-20160816; b=mDHoylIuPPA/zCc5ah3Ns67WL0lJHFuCPOR1zB1N2AwwdAqIYd4d3O+ZeDMqQ/P6J8 2W84UKphsermcUA35CDYKSW9CmRtROuMXEtnmfiMU81Z8tV40Q+GxRLJsSvfoomccilz MIW/D8fLs+oHOBk8Cgtpqws+Lqi47LTERNAZyM2f3uVJNlqG7TOsfIet8FCrg3a8X3d6 /YCg6r+I/VEDUfJDty5XLaNd5JfDkhzUuzamArKLizE6BHbB3wjDoZKipp3HiHqgLtto dXuZmo2yqc7Q0uFltzroA5gCk4m5sltySEfbtEA0jVClMEnBY8rKuFAxlI7B2hyft8Ty YNKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Zllk/wuhCWwtewos2WrOxr/iwLLxz8oG0dapHF1TNaE=; fh=drva4jsgntyG7RL0Of8GUCv/lo9++e5EMe4C460513o=; b=k5iDbxxIK65NC8MfeyDpPlF72uzSRkxKX/ZKoyKLYNP3k9NOuRT5NvPUK4QBsfan94 xfOhhcm+icbg5VDDZdVQx4+N2c7x1o1uAShG/ZEPJbL7X9bsDQITtN2p32sC2Axj5AN6 Tu94K55foNg2fQhkOs9CLcOTB7RZ5voyDwn1ALdLOLGJUxcpqTd+bVtsjiZb95rLUp56 qnrlyN8k8QWVL+mfcp/5I2BGyuBfKISgu4AEy+m17iZLM1rSkHSpIA59bZlLzG/AGvXu Nn215bl/h9wvGpl/xOIG2ULypcE0mvKAkfR96v8paTaJoxzaJKDQ/519iBC+8sR72nJ7 gRgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MwEEFn8S; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-102282-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102282-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 35-20020a630a23000000b005c1b30b1b65si9612090pgk.648.2024.03.13.11.51.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 11:51:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102282-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MwEEFn8S; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-102282-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102282-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 47DB5285084 for ; Wed, 13 Mar 2024 18:45:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CF28651A1; Wed, 13 Mar 2024 17:40:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MwEEFn8S" Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89EA94AEFD; Wed, 13 Mar 2024 17:40:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710351617; cv=none; b=CLNYWq4AcOeyn3G1v5I8AhiUaBuCPzx6PFmDgUxXb/Bo6pUEfhCYb1Y+AN4A9h7LXNOIGeGRINumVgsKlGuKoTgTzc8gU00OGOuYQxutMKMQwdZTcCO5Tp2HErDxyeLHQJaHTczUJal/2YIh6pp4loxKl3q9qNndeYGFMfcREUI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710351617; c=relaxed/simple; bh=Ns5xfy/sbPNx6F1ycRVcX57JMl8ewV0mTqKIsYm8wwo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=LSBVLY4rpjgU/+St2q5p+To0HGfqO3LJhpLomqCOmYUe9fMec6L/akWlOJNEBkS76DA5fSMe8OMobyRVDLrBmLekFP/l03suURUbtiZMRy0WAxvgMua6X37cJdxBBHCp6manCSX54VzQ/iT1HQM/rXS6/Q431qU9CteOh/lzgKA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MwEEFn8S; arc=none smtp.client-ip=209.85.167.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-513b16bb739so130663e87.3; Wed, 13 Mar 2024 10:40:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710351614; x=1710956414; 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=Zllk/wuhCWwtewos2WrOxr/iwLLxz8oG0dapHF1TNaE=; b=MwEEFn8Sv5JP0waMzdNVx0AvStVvzs6ljrVcN6KXTMQtFFNUjP5wH/3H6+auvHN6Yx hfSiWGTlf3ZMi4SyQNVrVaF27jEbv0S1wda5gEGEZtQ4WQpeiptutZWUYR4kRxVrfIG/ d3DL5axqc9nn6e1X3CAJVnUOctJcibozphS8iRmxv8P6Os+s87XTzV+wYcaLdwsO8D3v xTOZNRqaUWr887aPwW9BCuJyDwtjuGVk0WccDfbUBXnI36N5LXZd2NbSrxhbScH6coEY SL1qqLpjYMOdyCUiKK9eW4ZxS7C7XpfzmucwFal6x4+0pqEbQuGgepzI59Iotk2YCCtk Rmrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710351614; x=1710956414; 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=Zllk/wuhCWwtewos2WrOxr/iwLLxz8oG0dapHF1TNaE=; b=dPNu/7u49d6Gz7Kr2tDo+yKz96i7TzRu7e4QDqulx1bqYO/qHW3Qntnu9lDJT8REIV pd/Z6MsINc116WOQQnrORA+Sk7JfwPbT94/nu8E0TNpHSawiEziwXZvGTdl7SWwapdn6 TChtvtrFhbOrRLZjLuneYk6Dd6wNZCMMVMG6iH8PlPiQ+T2QwdR+FuU9vfL1tfPKtTUt rvk0hJ7osb+EF7ybjPtV8HEY5hm4i+oTtsCeGXF9dqbJdJk3+R3bLdpOSxpKxF1XNLCE LWXH9ePNhXuwpE3pU2LNBwavEiQox+tr+MbOAhtoqX50DCIgUdjbnLbdOMT0PjbfqVkn mZZQ== X-Forwarded-Encrypted: i=1; AJvYcCUc3aYfWKDfyuyUv3VW9NrXY3tJD9G9fevbgovQT9tR2ZNJMjZGYfyUlFUIThAKqIELRXDpl47ArffqSxyt7DWu/MnBWsqi32qEIB8DN3KeTr0uHFxTOGSMgm/alnJ99bTuNHMP7d5/ X-Gm-Message-State: AOJu0YyEVNclyq7yzAexiFmIFl7/doEqh/Gfi2mrqAdiHz9UUiJEbjh0 Jvge3rb4j9zUz3lAXK1syOaqDGouNMg2mFqki+AfVJ1CkedYZhe/X1nAwhqJtVkU49xT X-Received: by 2002:a19:f815:0:b0:513:c0de:307b with SMTP id a21-20020a19f815000000b00513c0de307bmr3638430lff.28.1710351613371; Wed, 13 Mar 2024 10:40:13 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:fa35:157e:1a40:3463]) by smtp.gmail.com with ESMTPSA id m17-20020a1709061ed100b00a449076d0dbsm5028215ejj.53.2024.03.13.10.40.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 10:40:12 -0700 (PDT) From: Vasileios Amoiridis To: jic23@kernel.org Cc: lars@metafoo.de, andriy.shevchenko@linux.intel.com, ang.iglesiasg@gmail.com, mazziesaccount@gmail.com, ak@it-klinger.de, petre.rodan@subdimension.ro, linus.walleij@linaro.org, phil@raspberrypi.com, 579lpy@gmail.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasileios Amoiridis Subject: [PATCH v2 0/6] Series to add triggered buffer support to BMP280 driver Date: Wed, 13 Mar 2024 18:40:01 +0100 Message-Id: <20240313174007.1934983-1-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit All the proposals were implemented, and 2 extra patches were added (Patch 2 and patch 4) in order to have better logical split between patches. Changes in v2: Patch 1: Sorted and removed headers as per request. Patch 2: *NEW* Patch, adds coefficients for IIO units in the chip_info structure as per request, remove them from the read_* functions. Patch 3: Patch 2 of v1. Added RAW values as well, as per request. Patch 4: *NEW* Remove the temperature reading from inside read_* functions so the addition of a buffer for userspace is facilitated + make the code much more intuitive. Patch 5: Patch 3 of v1. No logical change, only minor typos as per request. Patch 6: Patch 4 of v1. Previous commits allowed for much cleaner approach as per request. Dropped filling of extra buffer in the read_* functions. Patch 4 allows to put extra buffer in the union of the chip_info and fill the buffer in the buffer_handler function. [1] https://lore.kernel.org/linux-iio/20240303165300.468011-1-vassilisamir@gmail.com Vasileios Amoiridis (6): iio: pressure: BMP280 core driver headers sorting iio: pressure: Simplify read_* functions iio: pressure: add SCALE and RAW values for channels iio: pressure: Simplify and make more clear temperature readings iio: pressure: Add timestamp and scan_masks for BM280 driver iio: pressure: Add triggered buffer support for BMP280 driver drivers/iio/pressure/Kconfig | 2 + drivers/iio/pressure/bmp280-core.c | 431 +++++++++++++++++++++-------- drivers/iio/pressure/bmp280.h | 18 +- 3 files changed, 326 insertions(+), 125 deletions(-) -- 2.25.1