From nobody Tue Apr 7 04:18:36 2026 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 18F383D0905 for ; Mon, 16 Mar 2026 17:28:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773682099; cv=none; b=JRPG35qiWLLV613v0NZzzq6rWpiORT/H7jIBDiilt+NTPQLn2YWH/EliI40YCWUjQx1rDCummE4lWAPqUusDd/wQRTRKzZstkrEAHe465vwMblzW11Sf8Ga2/HFOHYIVwMVM/aSDYwkHYqEcQnuV7KMZyllbexCNxrwrf7U5LOY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773682099; c=relaxed/simple; bh=zCblIchmXjb3frElJ0I3VjbD0ZXbwiADxhX1nXU93pI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OuuYcGqHPYQ7OXWh7zN0ZtWaqD+HwPnfHs/bLKRcvkw872f4/N7r//GQJC+iTWgGwj9Ocx25nkzmAo+3IIx8cY8Ev0PDInlbLqVD6vuAIS/9yP6DzBRmu7ScUKrSQDmVXe7BfdqNalNTye6WMf8I8JG3CbdJh18UQGlONRHMjqo= 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=IfBp7N4K; arc=none smtp.client-ip=209.85.210.175 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IfBp7N4K" Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-823c56765fdso2712636b3a.1 for ; Mon, 16 Mar 2026 10:28:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773682096; x=1774286896; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Bh2gOz8n44zuLbjupCs/AlgPlllh6tQEJHpw+6GRNJo=; b=IfBp7N4K3V7n7P1aCkamW+ikw0Cy+dW7kuB8+MP8/FHAL/UhGDql07aQ4GwQJwURoG B6rS2obfCLZPkOQBUe4Ef5px0GyxwDsLiDi1AghPP05UArIindM3TUEXzxtxPX5dnR0f N+Tht+nD7CYWTxuQ66mE0hHLHRv8f5NAcz2UTT1yIgjrTEw4OPBw0NQMJCM0a9URMs/M WLhd/yLqi7BzToWLyTZbFpmfd2pfcjAL/G2O3n+fJFiFB3p5J7edlUmMDXfWoH9hiv1m rJ9vJhh9GqmUoVL8uEXaJl9c/WbW1T2gTQWV4RqTZIfUhtWR4jzadWElMWmWQAHWyThO toJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773682096; x=1774286896; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Bh2gOz8n44zuLbjupCs/AlgPlllh6tQEJHpw+6GRNJo=; b=c9bGFlbrVEYvKVhezzOAFdlewdhN2Lw1plnc/IKqx9sVpwqRXz4tcPwYgjl6s/33I8 n4XFASnYr+UIaMiHBhRUWQPIKqAQZ/U2jRwqTvb+IHKB2/sdd038fwDRkOSqDrE7LB/R ElmqxJDNOKtsyDriMZ8q29KprTfHVM3Y4Rmor8FStdKmx4OGx0Ww71CmZBbcprnDIoQq yf+PFm9tNr3G6NN20CBbcm74SFRHbbyDjVy1cH0cDMvHFpLt1XvgkitFqpn1oX5dob/E Di+bE/YWshJK1K/medEAzDsaL+K/w4rmSN81YQMboFzxMFioEOwkImqRjE+LIN6eNys3 1Y5A== X-Forwarded-Encrypted: i=1; AJvYcCXlF9MnP+uI+TX+8sTMCny/VcLle1bNrtH1I2gLX9HYhqHlI2XzEtNo3/sOo6NoUKWnRYd91PdTrjVjgyo=@vger.kernel.org X-Gm-Message-State: AOJu0YxA7dL3Mg+PcZY05SmQERDqY4+DYta6pz4Os460Sbpb/ctqZLpG 5+xYqnyWYbt/Ur09cp/bAY3M6UttQTaNxvEHa+KW68Zab5NebIO3hw2i X-Gm-Gg: ATEYQzxMWFAte05RWIFcl+wLZfdDIvCF72lFuCl+5/9NsfrJ+5at0hc2erYVwjcR3DY mJ3cq7neBbboNDyVUNwgb1QsLaZeMNqpFhfAZ+lSSkjxHpZAG12jXE6t8gCiaafKpK/IAIca4yH ImFgRLPV+FT3o8ENeU2N6Jj6I0APNMHOj88BBrpYqQwYQfH9GEL5dGManeJtTvB0UuemB9AMXwn zATiVbbuPnPuDnVpOc7UtQ6lHA61TCSOAEZy4ID7gjFBgIhz+eQmFoaaYdoSV2D2isK6EuhqBLH ZncnE8TOQF9ws2H0n3G1ZhWSU1QPrbMrhYlAiCY0Bq++craf0m9FqUgjBxw4kl/n9yLekappaj4 0WHf8RJOFiTmqnnXdhv+RlmcxKEzZ1U8yqj1Z2PdiWUAmH4kUVAC6GSl4jc1PjX2f5/wN0iH0Ar bUbPWYg/tjtE0f7pdZxW8472BkrjR6fLrYQPM2PVHs08b6SQjqjdtLzGuM2KBdkHPDCKJZf3WVN SAE X-Received: by 2002:a05:6a00:1a15:b0:7e8:43f5:bd4c with SMTP id d2e1a72fcca58-82a19937b84mr9450018b3a.56.1773682096234; Mon, 16 Mar 2026 10:28:16 -0700 (PDT) Received: from atharv-HP-Pavilion-x360-2-in-1-Laptop-14-ek1xxx.. ([103.216.213.160]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82a07341986sm14016183b3a.32.2026.03.16.10.28.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Mar 2026 10:28:15 -0700 (PDT) From: Atharv Dubey To: jic23@kernel.org Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, marcelo.schmitt@analog.com, mazziesaccount@gmail.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Atharv Dubey Subject: [PATCH 02/11] iio: ad7766: replace deprecated iio_push_to_buffers_with_timestamp() Date: Mon, 16 Mar 2026 22:57:28 +0530 Message-ID: <20260316172735.11430-4-atharvd440@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260316172735.11430-1-atharvd440@gmail.com> References: <20260316172735.11430-1-atharvd440@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" iio_push_to_buffers_with_timestamp() is deprecated. Replace it with iio_push_to_buffers_with_ts(), which takes the buffer size as an argument and helps avoid potential buffer overflows. Signed-off-by: Atharv Dubey --- drivers/iio/adc/ad7766.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/ad7766.c b/drivers/iio/adc/ad7766.c index 9e4a66477d2d..cc47b0474ceb 100644 --- a/drivers/iio/adc/ad7766.c +++ b/drivers/iio/adc/ad7766.c @@ -74,8 +74,8 @@ static irqreturn_t ad7766_trigger_handler(int irq, void *= p) if (ret < 0) goto done; =20 - iio_push_to_buffers_with_timestamp(indio_dev, ad7766->data, - pf->timestamp); + iio_push_to_buffers_with_ts(indio_dev, ad7766->data, + sizeof(ad7766->data), pf->timestamp); done: iio_trigger_notify_done(indio_dev->trig); =20 --=20 2.43.0