From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f173.google.com (mail-dy1-f173.google.com [74.125.82.173]) (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 CE859C14A for ; Sun, 28 Jun 2026 07:14:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782630858; cv=none; b=ZoXq+XSRiAuPQK59aUJ6WzG/53iTomr44lUOtpCe25IckuLPexqKdmg35DPSwdZTVwQevAuRRRA9j+6YsiwvE567rJeN/5+mPGyvt3lccM+D7vFnHe9qhklSHKVHrwtKWEYaeJmklYmZWs/snWP7Tb5QBwCkwvTHAx3SaLPoD0o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782630858; c=relaxed/simple; bh=xmwWSaBy4FHvE2lZSfawLpH4uzj+yitUohO7k8IBseA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=B4ymy0SfGN8PMgw2m7JgMZI2HnKR8HRblttujDtJv35r3eqW1YRgjVS7KBXR43cjs66mDxUpveW/fONfgwxByTQfHDWcSWTubVQkpK4aTsWiUo0sgJWt0s0Y85LWwMnMH4EFiKXTCpaKvqtzv76PMOtVII/nMOnxwzgppuZf5K8= 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=gc9uIqYq; arc=none smtp.client-ip=74.125.82.173 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="gc9uIqYq" Received: by mail-dy1-f173.google.com with SMTP id 5a478bee46e88-30c944aacbaso1622030eec.1 for ; Sun, 28 Jun 2026 00:14:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782630857; x=1783235657; 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=iBiW+Jb5ofAnhQsaYWPoJcN5SGqMaVDonBUCRupHVH8=; b=gc9uIqYqQUrXuJeBbcpJUS5q4TotDHjRLnL4cM5DKgwtOIcsg4FU35k/jH4w1OWDbc b3+c1OLFALpcsn/w4it67tgk5PtYCdWUj3oln81Nhi6l7k1kJlz3SU8fK1HLlYzgFMJC vWyut4x0RrRwKuzYTXhIRQS0B+xupUSfFflZqEbvRAhEX5qa3ePa8zOmGK5/2UlL0wZC 7xgMfjav2egEbw7kEujjeXlZG62GQ1XCBDieOJ7WJB/QdDkZFLEdY4uGiAT+SBrM1idm Sa84EOMnLnIU5Si0btfyPK1lUikusfyQYtUZBGHu9XzJQlDrLh6auvytc2oR02/98wva Hz0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782630857; x=1783235657; 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=iBiW+Jb5ofAnhQsaYWPoJcN5SGqMaVDonBUCRupHVH8=; b=TfocZAp/gA/EVZKQWRpTYi0u3y7FGRcUYUovnF6SkX7D6Q1JytVgdcwNzRg1sBgZod ocO6tinBBu9L+UvHsfGMmZVrj37inHAbusQwSdNBgKme/oiKB1584LLsimFexoPli/Pu Hk2prR8mlAxbb00iAbcMcd1OFOGr65eJUQsweT2n3YpDNp2rco0WXObBPaq+plseZBOp 1aMUt8HqsgkC8npLD2iYlkcsjIkiehFV/RQqm2/AUzsszKjTyn79Zq+gOubuB8b8PtGt V/nD5iSJV455Wyl87RQFRy9vh39q0itjZXbJyYJu7d6Wn/skFWxbr0q+w/XwWz3JL56Z Edqw== X-Forwarded-Encrypted: i=1; AHgh+Rp99d21cC65kZi7ADhVWOAbNEjsBudT5FFQMPHNVOpSAHh7lUFpltufU1vL6suQyocfXVj7MArLqZnmreI=@vger.kernel.org X-Gm-Message-State: AOJu0YwJwd3S+RLhYvJFGyERF/yk8a59jglmouHcVmhz18toNCxbNNRQ 5zk//xa3ZfHSIFfctVnd+FUIIT4ETz8/eIrjZv+z41RgSQJnpQQSTr9R X-Gm-Gg: AfdE7cnl6mjO9gPnI6lXgUHIb2GXMKrLnYFMZ74T7/stEdxKJEjAs42rxV/WGaWyLNF VQvA4HS8yU62npJCDYs/plgVIIxfojboSiVQvF8jtlzTUMPmANBg4jm01/3lulJyvLX7fb3bHXE DjsOFzuxcigJ5swqJBGg+jAOt7u00D2N335SBc5iMMXiKMwLdgYZ0fMsyC0BD3W0cggnEzzBA7G hm/+REX1ZjxXjJd4qv8Q7ubS+hhAMWIUbkMcPBXozukdfjzHz8+OiqhmnZ9xH8SPYBTGQqYzGQB /z2yz9gA86+NB8Sj3SWmIvjkVv/nuf9X2GIyHNFDdkF8WY8p6dhYwIWEQe/goHhXFNs6TXCk9Ks GbpJFAd3RTgFDoiENLbSWPrMG9jZuciopao0xDsg21KLeC3paTLgA6EqVMuyg2XjSooCumO7O3V trT6+4Z2ZWST+7LCILfMIJIccfmzKkt8VgnbPU8HK55e58wRvn6zXJlOZ+b1dzT5PcLQ== X-Received: by 2002:a05:7300:7fac:b0:304:2176:a871 with SMTP id 5a478bee46e88-30c84a265a1mr12633771eec.0.1782630856923; Sun, 28 Jun 2026 00:14:16 -0700 (PDT) Received: from moksh-Nitro-ANV15-51.. ([45.118.104.214]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-30c7c9e9214sm34474940eec.20.2026.06.28.00.14.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jun 2026 00:14:16 -0700 (PDT) From: Moksh Panicker To: jic23@kernel.org Cc: nuno.sa@analog.com, Michael.Hennerich@analog.com, dlechner@baylibre.com, joshua.crofts1@gmail.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, Moksh Panicker Subject: [PATCH 1/2] iio: adc: ad7779: Remove unused completion field Date: Sun, 28 Jun 2026 07:14:04 +0000 Message-Id: <20260628071405.51030-1-mokshpanicker.7@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260627192638.5623df0e@systembl0wer> References: <20260627192638.5623df0e@systembl0wer> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit struct ad7779_state contains a completion field that is initialized in ad7779_setup_without_backend() but never waited on or signaled anywhere in the driver. Remove the dead code. Suggested-by: Joshua Crofts Signed-off-by: Moksh Panicker --- drivers/iio/adc/ad7779.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/adc/ad7779.c b/drivers/iio/adc/ad7779.c index 695cc79e78da..c1a99b4c1256 100644 --- a/drivers/iio/adc/ad7779.c +++ b/drivers/iio/adc/ad7779.c @@ -143,7 +143,6 @@ struct ad7779_state { const struct ad7779_chip_info *chip_info; struct clk *mclk; struct iio_trigger *trig; - struct completion completion; unsigned int sampling_freq; enum ad7779_filter filter_enabled; struct iio_backend *back; @@ -852,7 +851,6 @@ static int ad7779_setup_without_backend(struct ad7779_state *st, struct iio_dev indio_dev->trig = iio_trigger_get(st->trig); - init_completion(&st->completion); ret = devm_iio_triggered_buffer_setup(dev, indio_dev, &iio_pollfunc_store_time, -- 2.34.1