Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp874456lqb; Wed, 29 May 2024 13:13:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUySNF1oOURkclRHsEdLFdsuIwJwxQQ09UMaJLaTVZzWlQ0TPY+1JKr7woJ3tlvF0wl646HA1VGWgmkswJhNz8TsMRb9dgEkxQ5FtkMQA== X-Google-Smtp-Source: AGHT+IE2VGiS7OEreuxe7eKFMApPMgOgHlsLbZPLBG8iJaNTGZKdRxuzbiQ9t9zQ4GLtBCc7Us+n X-Received: by 2002:a17:906:e292:b0:a5a:580f:8e64 with SMTP id a640c23a62f3a-a65e8d36f27mr14552366b.15.1717013639278; Wed, 29 May 2024 13:13:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717013639; cv=pass; d=google.com; s=arc-20160816; b=OBv/8G1zrvUU1Q3p4bSGrmE6sQq9MaQjqlmyx1ycWZ6cbaxKZjjwSD2PwhyX/OSGKf WEzFDbIz2t55EXcswHYk4/dxdcEVaR4kHut7XCYqmQfjlUWHC1Z9Z8sb6os52WLOddvd 4Fk/6iKrRHj9lvnCfu2uGodYrpJOvsJJ/yQAkXva1M7VKmOzKOYizsJhYGhh73ADxEEE FEkfxyjHwYqy8w2re2AQvZ6C7JPa7Pge8FOiHrycsRtigUobbbnRzxv1ZtArVcyGPA6j 0z8LFn9DghhCFn3HVUTrLdm34nwf4U6LT7MKU7HZb4U+S6Ohxq6UiiGpLDlwXeSXKyg3 r6tw== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=R6OCMWHZWMlkpysjOisd5Gptl8hUDEaNpxes+37D85E=; fh=ULxNTxaaQIEX8Y9ih2rqqI9Lxn2bbvdaV8tkS1+QGD8=; b=HTNc0JfIqFmP+SdmNK3yuLeeGeSdw90M7z1VfCKT3JfgXybckwnU9mdNzEuNmo+dV8 9r9q8DiywokBP+v9j7TVUrcZfLF1rBSumcgOV2v3wy6GOgWTWK9z0N0aLY4XKfK/wSmN s7u6JubqwJ74Wp74fgufn6BrSFrOa0pBqqUOWMXY5fCj0LtTdqwGyVpgPH7YLqBVZ6Eh PtJ8GzuX/xfd+OZCNaM+AELdmF5bFaKhG5FzS1y4Pqj5sPzkVrHX9+hszEPakUObrfT3 jcovk67iehHJHfEvKfWYeGHzdwLSJmHwNQQZJcchs+zlWHbLpY3e2iUbqMV6LidJHet7 T60w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Euqumq09; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-194644-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194644-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a634d7c3a7bsi203015166b.549.2024.05.29.13.13.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 13:13:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194644-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Euqumq09; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-194644-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194644-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 310B01F2300A for ; Wed, 29 May 2024 20:12:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E957D1C68A4; Wed, 29 May 2024 20:12:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Euqumq09" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13C9115B0EB; Wed, 29 May 2024 20:12:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717013565; cv=none; b=cfcM3qR6SD38nvEW8VKbf4EaT4JKVhDh/gLAwQMbWrXq1Za3DRTQWHyHi82cPZ2upFealqV+fkiWMmnol1K6LjjMZ9Sc6JibIetHuPB6FrucCZ20eTMlEClm5e3hzhwDYIv1bEzyyoWf5fv0M/HJVyD1A6GMRnZZIaKxPxT1DIs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717013565; c=relaxed/simple; bh=ysCwz58Upl2+SUOx/6vsLRR2nSew8pOkk+LFvAR6jo8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ea8PObb5Nljrgf98W8eJcOcrPCYesVHQDxcYgU83yTlOOpXwLB+0TtX5i5Wm3dLLTp8paERayENjjIMF8/3RB8LZk2YAyIcxHV82rhCMctNSkwIXS2I3CSnlXsemdckPkJNzAs8kaa4urv4Y2fJpGh/lrxt/YPol+LQAWzXsSAA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Euqumq09; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D746C113CC; Wed, 29 May 2024 20:12:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717013564; bh=ysCwz58Upl2+SUOx/6vsLRR2nSew8pOkk+LFvAR6jo8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Euqumq09cLjpnx8EZ8oUdtj/5v61cRzBRK0ZVEaqYAlpQ4Nxidu16U3ksfRfTkSpT 7GccizxyewNpSYiP8b0L4kMIzbiSRS1DgT/h2v48Vp/d6wuCcU6BQvfdE7nffwyScR 4Zhc4NefJq1n4mSY0weNvgtVWRD2lI3306QTjDv4HKmPp0DEWuLAHh/yS5Dldi6067 MbzcOEKdx2D6MB1oDV2N33YShMkOAq/sp0suvQPQ3DDcXVPjn66aflA4/XFEaSwg1Z Wr/Vy75uJoXRSG7GOkDF9cqn3fcl2zgZtUFSanEKQspr4pAi8+kzfcEaCBI3qHCQbw NIMo0ZJn8ZBgw== Date: Wed, 29 May 2024 21:12:28 +0100 From: Jonathan Cameron To: Vasileios Amoiridis Cc: lars@metafoo.de, andriy.shevchenko@linux.intel.com, ang.iglesiasg@gmail.com, mazziesaccount@gmail.com, ak@it-klinger.de, petre.rodan@subdimension.ro, phil@raspberrypi.com, 579lpy@gmail.com, linus.walleij@linaro.org, semen.protsenko@linaro.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 5/5] iio: pressure: bmp280: Add triggered buffer support Message-ID: <20240529211228.2d7fbd93@jic23-huawei> In-Reply-To: <20240512230524.53990-6-vassilisamir@gmail.com> References: <20240512230524.53990-1-vassilisamir@gmail.com> <20240512230524.53990-6-vassilisamir@gmail.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 13 May 2024 01:05:24 +0200 Vasileios Amoiridis wrote: > BMP2xx, BME280, BMP3xx, and BMP5xx use continuous buffers for their > temperature, pressure and humidity readings. This facilitates the > use of burst/bulk reads in order to acquire data faster. The > approach is different from the one used in oneshot captures. > > BMP085 & BMP1xx devices use a completely different measurement > process that is well defined and is used in their buffer_handler(). > > Suggested-by: Angel Iglesias > Signed-off-by: Vasileios Amoiridis > --- > + > +const struct iio_buffer_setup_ops bmp280_buffer_setup_ops = { 0-day noted that this isn't actually used. I'll add it to the buffer setup where it's currently passed as null. > + .preenable = bmp280_buffer_preenable, > + .postdisable = bmp280_buffer_postdisable, > +}; > +