Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp358942lqm; Wed, 1 May 2024 02:51:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVFumnfrjc0yCFRbmE+EY60WtIxPjnCmMTDZHVFRONBoBjqZcOFKiHXBOzJsCVl6aEH7Olxn9jZdzwUo5WWddpT+kYOa2Lm4ARqY1DJg== X-Google-Smtp-Source: AGHT+IEj3/CVhCzKQr83NKwz4l7oFRw96Xw8Pi5oPjQIpQJf9AuNb4YV5mMIyaAOhYmSaxjgBIzR X-Received: by 2002:a17:90b:3d0b:b0:2b2:b921:a99 with SMTP id pt11-20020a17090b3d0b00b002b2b9210a99mr1741977pjb.16.1714557075975; Wed, 01 May 2024 02:51:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714557075; cv=pass; d=google.com; s=arc-20160816; b=d7E2uRAjLVr3x1o2ZtQLOE6xZMAwkDSiAiO7mN4v9nI/k7D/uSWfkxvrFcrWckCuqJ PneKd1ZMCskT/NO110jbYrZ3B3TBIaGOastBC4qYxs1zhAgw93DBqf3Q8CLNKDZO2HT3 o4jG3k2EyfkBbDF1qAz8Yv10SdOIf5E+dH2qGcxh67cv8U6cKaBzqVBYaRiyeYbrdcW6 04fWxbC8A/w3ohVnVASZGsKlaHQJL6nFpG9nPP1VKkY0C2JivY1IDvblSR0cz3FCX415 iyOkVmZ4hvHZrxUOAS1n99fnppWVGrvygbfcizCLAgD0tEdZrKCSPcZ4ebyJGzdawQia Znbw== 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=ihCvMaCJ1TBCxY0a/aMCQRyN7JfGY+w7nfdzuRre2yE=; fh=8SHLsmr2/Y+9ejyURMWDwnOKoxRiiI3EPujXl28cZKQ=; b=Z1GlMUmgMz5zJ3bdME2gJ3bNWKRfzhEJkb7SAMbQ6tUvauij2PRVcqGG0+PFvmH4MV 6i58ZZO+4ssSIJ4ShRHynz0TD5EkPTITB2FVaEeWjR30AgB5Q1Opv+mWg0pjJRz77xoa vjcDvEJhiHkRZ34zF6dWIt2wUMeJmMgYETBU111I5WvdDcwfQ0xAsM4xQ03RmMYUCS2/ 5b1QVKjU+YcKKfOYSncgZ/vVZK2cAdHNOOre7wwZlxCohKGbsn5PBW8qD5p7jg6kfgpW +QzEzjYQSrKzitexYjfMlO2Q6hMdzjO7Tf9eDCMSJQLg8MEIzYT3MmR8MO9Cc4Lt5PTA xduw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Mdp18xET; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-165114-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id me18-20020a17090b17d200b002b32a2b7d7dsi946227pjb.33.2024.05.01.02.51.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 02:51:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165114-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=@wanadoo.fr header.s=t20230301 header.b=Mdp18xET; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-165114-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr 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 05120282BF3 for ; Wed, 1 May 2024 09:51:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DEC283FB09; Wed, 1 May 2024 09:51:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="Mdp18xET" Received: from smtp.smtpout.orange.fr (smtp-18.smtpout.orange.fr [80.12.242.18]) (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 F002E645; Wed, 1 May 2024 09:50:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714557063; cv=none; b=VOZnjUtxAF+FUZzEPAFQowypar7R2fcu9z2x+0AFZoJ7WrmTyyww5oCWpt59MjNyVqfNiepqRSRureIY7YlL1GcHQ2g0wHByv5OIDjAhNodcW7UpaZAvxpsO5Mn4y1yWQ+z/LeXqvHpsIO0IsFxQ9qJRhlTIVkTFf7lWBhyU1/w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714557063; c=relaxed/simple; bh=vvylw6nHMRwLM+9gl4nry8f4/NOWGRkQIZOZBNuzl2o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rXXMqJhdUICMi1E4Y5dri+7OnpT53GOFuzJaPSUqsnboDC9FtnFnyuOlRfbIZENMQU32pUo7ZFVKcDDpUZz36JlFRNet7MwxP83ESFIBMO7NlGfJqDdzAJDZJRBhmVLCdIdfw79wW3Fy552e0RrmTCWXGi8jczMSrI6u1XbJDeA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=wanadoo.fr; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b=Mdp18xET; arc=none smtp.client-ip=80.12.242.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Received: from localhost.localdomain ([86.243.17.157]) by smtp.orange.fr with ESMTPA id 26TUsv4R8rs7M26TVswXrR; Wed, 01 May 2024 11:42:05 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1714556525; bh=ihCvMaCJ1TBCxY0a/aMCQRyN7JfGY+w7nfdzuRre2yE=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=Mdp18xETnmsMenUVoZrWFluvlKQYzatXX8PVmttk5gqXUkGJmUVmf+27K08lRONih 9ne2w5Oayq4N1lE47ayVek3AW38LvPAJOLXIWWYkY+EDMZE73GlSxd/Nw7MmAWxiAg dCUghnZwQQNw5ReWb71IeeyMvieGtgx/SscbK3vWze5VrVJN5pikTAaomrte2hYLsi PXiqagxfo6Ct8TLy8cdScQtLj2iY3bfh1DYLAlNpQDw6Th+LBr/NWTePyEkHLDGrHj 2Rr8hA1kmhdaehLI2tp2iMN27/UW7xIqgqULiEvB759FZABwA7BMfk+a2JxNSid0Of 4omHN6Y0RK21Q== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Wed, 01 May 2024 11:42:05 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: Peter Rosin , Jonathan Cameron , Lars-Peter Clausen Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-iio@vger.kernel.org Subject: [PATCH] iio: multiplexer: Remove an unused field in struct mux Date: Wed, 1 May 2024 11:41:54 +0200 Message-ID: <7bb04abdc2815caf090a6c9ecab2a51d837792a7.1714556499.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In "struct mux", the 'indio_dev' field is unused. Remove it. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET --- Compile tested only. It was added in the initial commit 7ba9df54b091 ("iio: multiplexer: new iio category and iio-mux driver") but was never used. --- drivers/iio/multiplexer/iio-mux.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/multiplexer/iio-mux.c b/drivers/iio/multiplexer/iio-mux.c index edd8c69f6d2e..2953403bef53 100644 --- a/drivers/iio/multiplexer/iio-mux.c +++ b/drivers/iio/multiplexer/iio-mux.c @@ -30,7 +30,6 @@ struct mux { int cached_state; struct mux_control *control; struct iio_channel *parent; - struct iio_dev *indio_dev; struct iio_chan_spec *chan; struct iio_chan_spec_ext_info *ext_info; struct mux_child *child; -- 2.44.0