From nobody Thu Oct 2 13:03:17 2025 Received: from mail-oo1-f52.google.com (mail-oo1-f52.google.com [209.85.161.52]) (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 4C12D2E175C for ; Tue, 16 Sep 2025 21:03:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758056640; cv=none; b=Mcrf1t0LddZPcXIBmLbsCBqSWkC4h696wlI8pOlMRieb9rbw62pfl7ZIOjJCnvVyOR0ildyAHGb01wNPF1eMJ4A/U48rCrX8TCox37OGVwwJ0xjf6+9K1ORp4NQCDpEhB9EA7zuaFbRgZtCsYVD7O8LcPUIn1Ar471Q0wPcbJ9k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758056640; c=relaxed/simple; bh=NX9OezBQmGZXkufSRLFKbb/lXUVLMybe7wJNl4d03V8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pbrRfUCKFg/ArBtrhnqldkdQ+zwDNabya/mNAkhmcIX56emNZa2mqtRbxgcuc/WeBF+X7VG587jUOGJZjtc1/0WVJUTIw3FamT18k2iXWYLL0KkB1nLxXONhM7h91p/ZOJG3sfhOG4MSP9Gbl+HHPNgYjaG/oTSzeTtGUEwETgQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=Vsl8PvGM; arc=none smtp.client-ip=209.85.161.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="Vsl8PvGM" Received: by mail-oo1-f52.google.com with SMTP id 006d021491bc7-621706e28faso959950eaf.2 for ; Tue, 16 Sep 2025 14:03:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1758056637; x=1758661437; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=rMoYnKgqGeFb1dGTcjAO1AcVsxDcYWZJZnnQASzLGJU=; b=Vsl8PvGM03Chwtxna6j2qH6RkR23nLnYU+zFx3rKFZ9L3WXGrrQCELNL+4G8H3OuZ8 BJ+ApNMbutBLdSNr+KuvJM0OVAqDeFcr/7uAy+vEmM9bG6Xw0ixhXlzwPQNz49MO3nh8 et7sF4WTMaOABczI057TBKyMY0sytMskyiA/760d3Gd6GG6rdDKhARDxuigjQGbdqfb+ zOxErhIy1chXVRSgh7URD3IxSBeG1wp6oUl4i3YqYB4bjJi/xIBc/gK/JjyNcF/taEyK 9K4WWSS653MpdYBzHtyOBSvStRWzbitbKVgaQ07V98Xi9OCauRfUopVb4b65ANnltNyV MWuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758056637; x=1758661437; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rMoYnKgqGeFb1dGTcjAO1AcVsxDcYWZJZnnQASzLGJU=; b=DCmUZMdBRKWrXr+eV3Z4nivDSwIbUYfs0g2ExHI9T/drMkkbsSlolDN06jkUpYsw9j cPQxbkZxyNbdjk4HuiTuooUG8echoFGUqeXpD2uSPmSLDX+LKWdtdX6sf5B6D5pzc6ov J8t+cVqFB2tpYoji7FOmLA4+HvH1U1IHKRZhUt2tixhiA3JUdgkpT8ymjYG6r0mkdJPK S2cRCq8V+z1x5j9ug2YC9uZ5iVJBFsIspNCl5atcLn4sQO4O5lajrDjsoPIkp8mPwX8y J3gUgI3Wa0eL4VlIBAIU+A3enFeQ5uzt+8l2esfUrooPJDgbRwOHg13CJcZY5r43bOrn qh3Q== X-Forwarded-Encrypted: i=1; AJvYcCXg3WPnpQ+0i/SZMNehDGJvBRHkaU4mTvNA4NbBk70ST3bPw6O29uNWOWJ3w9B8AjSsqn2E3awsRWHSUD4=@vger.kernel.org X-Gm-Message-State: AOJu0YwQyWJgRF1Au4HmpsWt7k7jLbv2SBPAW+DI+PetRiYutNQxz2pj IGLRKOnOtj00jy6dml7sP4NVTdm2UFgn+VxxliZRP0Zp1Kj2sfL6Qjx/w2QfEKyqtK0= X-Gm-Gg: ASbGncsc3CayVKAiNPdJsS/m4C4Rr0EXV75skI9q5frBLA4ZzWWaEmLm2ScOUIXSe4A SzWBBUxoriZ1+wchDmhoIiuSgtr4RLOgrMZRSDHKDnb6pH7XHP9wJ4ZOIUWGmnKblhryG90Qz+P LdBXHFaPy5/Scri7lMToVyIWZZiwUjG/nF5vK9dRkqz+S7uTrySM6ELNvYABjMRbOjsn7KUPZWB /p6/HFQOqJ+iosaccEEHDfNtH4bRtclEKFaD4CBWid9iw+a6EM4/hgO2TNTZ0p+j3UO5Ws60S22 mRedPjNrAJUmFH3S/ksT+KG1ri7ZiKXoAEqmm49nIXL2K4Tzcv+QPG4IxIjW8lEQEEYcVI+6KAU BbM8Vuh0qSpL9IR7qLxHL4FX3d/ey X-Google-Smtp-Source: AGHT+IF2UZuRgCTbOY2EweB2uXPjuhFlPoLc0/0+P1xi9jj3FxxW9uvqBvNoW6txEIxMyfLnPir3BA== X-Received: by 2002:a05:6808:22a2:b0:438:3621:1ba9 with SMTP id 5614622812f47-43b8d8d163emr9448479b6e.14.1758056637294; Tue, 16 Sep 2025 14:03:57 -0700 (PDT) Received: from [127.0.1.1] ([2600:8803:e7e4:1d00:70a1:e065:6248:ef8b]) by smtp.gmail.com with ESMTPSA id 5614622812f47-43b8294ac06sm3540044b6e.14.2025.09.16.14.03.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Sep 2025 14:03:55 -0700 (PDT) From: David Lechner Date: Tue, 16 Sep 2025 16:02:54 -0500 Subject: [PATCH v2 4/7] iio: buffer: deprecated iio_push_to_buffers_with_timestamp() 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250916-iio-doc-push-to-buffers-context-v2-4-8b17937a6cc7@baylibre.com> References: <20250916-iio-doc-push-to-buffers-context-v2-0-8b17937a6cc7@baylibre.com> In-Reply-To: <20250916-iio-doc-push-to-buffers-context-v2-0-8b17937a6cc7@baylibre.com> To: Jonathan Cameron , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Lezcano , David Lechner X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1212; i=dlechner@baylibre.com; h=from:subject:message-id; bh=NX9OezBQmGZXkufSRLFKbb/lXUVLMybe7wJNl4d03V8=; b=owEBbQGS/pANAwAKAcLMIAH/AY/AAcsmYgBoydCZe64xKzNtuiNqofBqBUVPbHen9ICcwq8S+ x2aTZJ0UUqJATMEAAEKAB0WIQTsGNmeYg6D1pzYaJjCzCAB/wGPwAUCaMnQmQAKCRDCzCAB/wGP wCGUB/0Z4nAOtm5ZatkVKw76T/gLIiqplOGhAIebbo3rMCu2OqKdYuYsXRsoOuclW/JLJy/cIop 1nNnWKxMXw9GYvHpWxoFVxZ5Qhurur4kn9gaKrwGKKySXnWsIjJgD5GkskYS12ijgs+rlGdUkLl Re1bDZQ654cuneyYHOM7F9DuUdsT9UXJGZoqqeyYBh5fKyajc9FW0A5+5al4/cmSzI5O0U8PQtm KNnu3JlM6DJs1YQ42EpLvhm4vcZf+fCeBEtcKhmQHaYE7cVANCGMtpCjZSXpsvUkU/vwziPjN33 aAWapZb+N8G/MQvRKfMfkMZRk3rkh0UoIbbnH/Z5B7d2bRrZ X-Developer-Key: i=dlechner@baylibre.com; a=openpgp; fpr=8A73D82A6A1F509907F373881F8AF88C82F77C03 Replace the documentation of iio_push_to_buffers_with_timestamp() with a deprecation notice pointing to the preferred alternative. Signed-off-by: David Lechner --- include/linux/iio/buffer.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/linux/iio/buffer.h b/include/linux/iio/buffer.h index e46b818981aaf473539de5adf4aafa7e7d675de6..d37f82678f716dabfd4eb3b87cd= 7bb00f146046d 100644 --- a/include/linux/iio/buffer.h +++ b/include/linux/iio/buffer.h @@ -26,11 +26,7 @@ int iio_pop_from_buffer(struct iio_buffer *buffer, void = *data); * @data: sample data * @timestamp: timestamp for the sample data * - * Pushes data to the IIO device's buffers. If timestamps are enabled for = the - * device the function will store the supplied timestamp as the last eleme= nt in - * the sample data buffer before pushing it to the device buffers. The sam= ple - * data buffer needs to be large enough to hold the additional timestamp - * (usually the buffer should be indio->scan_bytes bytes large). + * DEPRECATED: Use iio_push_to_buffers_with_ts() instead. * * Returns 0 on success, a negative error code otherwise. */ --=20 2.43.0