Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp406762lqm; Wed, 1 May 2024 04:38:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTbSWHpFI/WJ5y6CsqvZzxTWAfOqExInSgT3/Vh0duIIAQN0nNTUO+UblvLht3DdtuEYRMY5X7sCtvfLjVL90qJXPM735DYjfrEv5uIA== X-Google-Smtp-Source: AGHT+IGkLBOjZe/vrhvfZ6ZvGys+iB9Hi4DQ9vqcyQvL7lWPggdDqPCX5zRbvRqL4t8KkCrR4Gu4 X-Received: by 2002:a05:6a21:8888:b0:1a7:9afe:2f48 with SMTP id tb8-20020a056a21888800b001a79afe2f48mr2843141pzc.27.1714563501975; Wed, 01 May 2024 04:38:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714563501; cv=pass; d=google.com; s=arc-20160816; b=yLFWIs1U96B41OT1VQLSbPPTz32nXlot3Nl85ZUZvtjgIVOUSkpG+MGonLWj7vOago q8UzbggO/OYs+r3ofoC95gY0Z1rRG8QWhbGNLwuXXaXns3jC2LSK4TIYKQ1iD3K+c4PP u2AM6V+qfq/x+kHf4KHS4x7TWy0bc+nkiB0FEB9UNoB0HH7nKusXgVOKDT46S0mbmviN aflZNvR3id9aDQ47C6rDLyEmAGy/pyYgwwOUKjRTSXhV1xWf6QIDihffsRRMKOUtnal6 2ZKBd8nLYov0rj6lyKK37put4wqBtZEaCaffSABJFnaoMzvKTYPjVs9OMl+cu+CWgWgi 5OCA== 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=UX/wu/RLILUA2125zmuAeWndUa2Tzy8BmAzyIuX2a+k=; fh=kOh4rBj2vC1U7ZuLkqRBOuYsFzsLRVp0DbbewvHQhgI=; b=CLars1U/iEIGaFrGBcN6lsvBKIvsHeJ6IZkX9nOscsenuYam8S2HTBS1HHrb+G7/2+ 3YOq5g66FZFNJnBIFeCQT8gYj4g9szJquLPlHEwxVkWR3zawFhBE/VM0yb4OoBN5Kg7U zbK3zk461iHBx246JBYz/DxPoB+pw3xN90ixcSyufd4gbCg47PhZdVR3YH6mBAAKnulT 3pwybO0kDLifuEfP9HD56qcpuF+pzv9Dwg/owuXbwV2SczAOu36pe1/NooGI3rG4dFlh ezRpZ7XI/iSa88sUUzufcesSWTJjnMSFfrpgMphl7rBdALQ5sI2r0atJBNghVqLoeY+W +cZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=reAEfJUA; 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-165195-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165195-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 o9-20020a056a001b4900b006ed99532c2asi23578915pfv.296.2024.05.01.04.38.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 04:38:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165195-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=reAEfJUA; 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-165195-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165195-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 8F72128616D for ; Wed, 1 May 2024 11:37:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA07B8248B; Wed, 1 May 2024 11:37:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="reAEfJUA" Received: from smtp.smtpout.orange.fr (smtp-25.smtpout.orange.fr [80.12.242.25]) (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 E349D5A4CD; Wed, 1 May 2024 11:37:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714563472; cv=none; b=jkvzcbW7Ad/mn7i3mmNz/HWjz4i0fDOjGlrAncKcHkJfPrGxv6AFUYV/boMzjl3FIu9ZyK/tIinrJ3sM/19XIf07OCSHVISbsQ/OJLvcOfMKoK9DZZzjUcNGt4zyRyqJ6zTyX9Gfb0zwxtHrntx0PXxuwJRMbhhwBjxQWbCYPNU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714563472; c=relaxed/simple; bh=5PygkcuyBUAwRIUORJnEko9R4njhlZJJ/lQkQ/6nwtk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AdrWu7JcpY6Q68MkxajX5drE63gmBkDHisJ5FM77R30UiHSf6HMw/haSpigAYhK3mkqBSL+ExQfVbeclEwS7yQiPSaCM06DgIVwK7QGOmfpz2n+UBbyIOUhia27P7QVcfVArfO4Du57fE+WxlGL9GLy5oTGAZS0dDTwA/Dw3k74= 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=reAEfJUA; arc=none smtp.client-ip=80.12.242.25 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 288ws0LoSn00P288ws2F8X; Wed, 01 May 2024 13:28:59 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1714562939; bh=UX/wu/RLILUA2125zmuAeWndUa2Tzy8BmAzyIuX2a+k=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=reAEfJUA8LXqgKp8cz7LdG6qlni18euoRbsIoCeDdhDwomJt9JhRMWIfRAivA067S JOXF9qQv0AYSPgvMbBsXt/Nq50WQ6O0bANCynxI2OwGt+GPjJuemJlxz8q/urhHNuD kWORNwkKZ1Yt8kvR7Yc+EJ7EEn9dKiTEA2i85c49gZi+P9BiDyVsKMwWOvSzknBupl GJBg+8DVvKnpLL47NgFXzH1MBxba3SulC+9UChmR3RoE3lkpLnPPJjU11bf843r8qQ DKL/pRtjD9U7nfr6F2QgIMn2tJCKx5fwNT4DuuaKiMnvIvpSg0LE0BW5yP7grub/Ws 45ikphYXwxJ7Q== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Wed, 01 May 2024 13:28:59 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: Gerald Loacker , 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: tmag5273: Remove some unused field in struct tmag5273_data Date: Wed, 1 May 2024 13:28:50 +0200 Message-ID: <7bd16d7fea12c64b6b3dc3cd32839cfce145bcf3.1714562912.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 tmag5273_data", the 'scale' and 'vcc' fields are unused. Remove them. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET --- Compile tested only. It was added in the initial commit 866a1389174b ("iio: magnetometer: add ti tmag5273 driver") but was never used. --- drivers/iio/magnetometer/tmag5273.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/magnetometer/tmag5273.c b/drivers/iio/magnetometer/tmag5273.c index 218b1ce076c1..4187abe12784 100644 --- a/drivers/iio/magnetometer/tmag5273.c +++ b/drivers/iio/magnetometer/tmag5273.c @@ -118,11 +118,9 @@ struct tmag5273_data { unsigned int version; char name[16]; unsigned int conv_avg; - unsigned int scale; enum tmag5273_scale_index scale_index; unsigned int angle_measurement; struct regmap *map; - struct regulator *vcc; /* * Locks the sensor for exclusive use during a measurement (which -- 2.44.0