Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp889510lqa; Sun, 28 Apr 2024 08:36:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUAEnltv8Ep0eeWrceVsb/SitWho1tLbdJ+MVQB0h1MgJLetB4pRIXYFlio3vI46h2psViHUBud2g7vPFYY7oRLSvDnzlOl2FbQtII1Dw== X-Google-Smtp-Source: AGHT+IEc+YIC1/cMpM8kqwJ5RqXR47RZiYovWEEaTeweGCppXNHaMMjRQt6B+oz+DbU7/7L70/3J X-Received: by 2002:a17:90a:4925:b0:2a2:d498:eec2 with SMTP id c34-20020a17090a492500b002a2d498eec2mr7731276pjh.40.1714318591925; Sun, 28 Apr 2024 08:36:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714318591; cv=pass; d=google.com; s=arc-20160816; b=qF7Dyscf0Qa+0Yswr7/CT7Ty+HPCoevpNrI4msNDZ1x0Ym2LnLCizQ1R4h1tkzSLSr liO2f6s9JIk/ASPGe6Ussk9PTHVzLa1fbB9iFxfsFbJoQ0n+qeTbHy0fAtspilmBrnp1 llB6RnaCykgEI3tE2p/9sUH62xnF8lm4JcfIIRUhxUcPGz6hFc0l2CTSoF+hgIK3Uo8K R15DtB/zBG+g2UTbVyvNXL0qGiKbA+79MMUuojss9YJU3KLfzrzLv+nMahlbZG1I77BS zLhIsAzJmKoFjdhe+HBOlogPpd1214U2ureEcH9YM2eNNag7lbwEoey24qM+I/5DcCNc R7GQ== 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=1gpd5ELJC1zLelEncmtXMoj1+Hn1p8lojfAwRP5/fus=; fh=hwo6l1D8TCoKQDo7Dsktn38eTL21agLBBgMpM/5fuJU=; b=pab7IrcsmjvKTpoJnabWm6H65KfTWFN0/MdchrWPEGuQgoP8/8QxX1U88FSSD043nM MKvlhvKDTtKFbs0V+HnxmlcwJ9cDQbPZdMmRN3FjrS7rf2h737QDUv+47zxB4aAWXz93 sx+Gg7w6H1kUez4mlI7sUPoYN3UHzvPq3oBVSSnVfwgWMhzeaCjBczFSEoUFPN5kHRGR 0hDM35QTKy3ZVdgOX9Izws9otgH3FdjHU1qrtFTiaCNFQF9+8RqmAoG4tkDiECBCVic1 As4mTyIM5nRVLSuDJvOKdjt7q8XYVA1gzJrXMSRibiByRYeU52IAL9+o+KuQG7B02wI2 Rc9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=IXWH8xfg; 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-161468-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161468-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h4-20020a17090adb8400b002a09c6ccdc6si20042452pjv.182.2024.04.28.08.36.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 08:36:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161468-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=IXWH8xfg; 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-161468-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161468-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 1B624281829 for ; Sun, 28 Apr 2024 15:36:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4BA66F079; Sun, 28 Apr 2024 15:36:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="IXWH8xfg" 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 C700A6EB7A; Sun, 28 Apr 2024 15:36:17 +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=1714318581; cv=none; b=nvcsnfOX6UTk8RU2IpnXuQcrjZFxpA9ezD8/qTveY9vf05UYwwhZ8WAvURJ+gPZtweIZy3t+HlmdcjMkPI3cT/cfSCUrFqiI5INV2vXDRVLtihf4xaaTfna+misAVc90sSBIz+W1rF2hQN4kfty9cVQgYuw5Q0IUAU5xUhB1Zdk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714318581; c=relaxed/simple; bh=pH+9W97o7UGH4h29CTm7rSwQNCI2Ku73u5Nn6wkcv30=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=L8B1wIxTzkta93SOu2GhYVwv84Om1ixYHBmjDb29kbM/DRwQp8KG/5FBUaArkjkozUhKCmTMq6XA14CiPcJ6Sih1gC25bRtggavgA3MfOEpwIfdk+HS07PpHx6fQLbaqpaihQdyxD8+0hnoarRJ7Js8K+L+1CFttcql+Dx6Z3dE= 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=IXWH8xfg; 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 16YWsTQrFuPiV16YWsibQ8; Sun, 28 Apr 2024 17:35:09 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1714318509; bh=1gpd5ELJC1zLelEncmtXMoj1+Hn1p8lojfAwRP5/fus=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=IXWH8xfgTVGRyT2DCFddqdTlble52UnCPNXRABtgChyIVcuQJhTmLp43uwO3SZCKn 0alesarNZUfWo71w8tt0s2iCENFjr7BKWhAbWKhqsOcNpXegvOgI0H5eUDdK2+1nK2 LEr1umYSwvtaRV3iSOF5VWa6a+asGtJEui5MWnTVhR6Os63TU8diWZZO5cW9QSRHqv 78jwoK2rb2jGRxn/VGBwgT3GpzeHG/l5WLf4ffN8/BNRAf/U1lWxyRb34rCwNka8vP G4U2u5Mpbv/WIq/V5zw5+44Gg5YzU5jE6uBOrKnapCJ4kAOhVt/U6tDwyPQ6cSmZb5 DaiB4PDsDMZuQ== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 28 Apr 2024 17:35:09 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: Pavel Machek , Lee Jones Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-leds@vger.kernel.org Subject: [PATCH] leds: aat1290: Remove an unused field in struct aat1290_led Date: Sun, 28 Apr 2024 17:34:55 +0200 Message-ID: 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 aat1290_led", the 'torch_brightness' field is unused. Remove it. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET --- Compile tested only. It was added added in commit 49c34b8e0f43 ("leds: Add driver for AAT1290 flash LED controller") and its only user was removed in commit 269e92da8b07 ("leds: aat1290: Remove work queue"). --- drivers/leds/flash/leds-aat1290.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/leds/flash/leds-aat1290.c b/drivers/leds/flash/leds-aat1290.c index 0195935a7c99..e8f9dd293592 100644 --- a/drivers/leds/flash/leds-aat1290.c +++ b/drivers/leds/flash/leds-aat1290.c @@ -77,8 +77,6 @@ struct aat1290_led { int *mm_current_scale; /* device mode */ bool movie_mode; - /* brightness cache */ - unsigned int torch_brightness; }; static struct aat1290_led *fled_cdev_to_led( -- 2.44.0