From patchwork Wed Feb 10 17:21:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 380575 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5DC97C4332B for ; Wed, 10 Feb 2021 17:22:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2CA5C64DE3 for ; Wed, 10 Feb 2021 17:22:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232132AbhBJRV5 (ORCPT ); Wed, 10 Feb 2021 12:21:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:43590 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232097AbhBJRV4 (ORCPT ); Wed, 10 Feb 2021 12:21:56 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D5E8764EC7; Wed, 10 Feb 2021 17:21:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612977677; bh=3XsRZ7GaXx8P2kZhXGx8Nf98E9I8mJO0HBDDnM97tTI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fVMn/+wSlxJDfg8IIIAwSZ3aB/5/73hoMqc177Y6KIUTjK2aEvxqKbxFm1g8yxstH SFfvtWT0YCA8iOxmhdBh4ZbbNexcYtiUx5KHG8sq5niB0nfC03/TZD9UCtU49bd7Xa 2PWr+uCLshusoY43a99IIflIONLDO9NoAvPN1rAS3ky9rPIfZniAZePooEuE4BzZ/j pP5eCNNr/s5yCqECttj1H8tIjLE+WAnq7GlvTo2bGNHiTT4YTk4AHQIVHz7gbtwCe+ b+/OdeWdPdEyklKJXnYa5CJmPWkQsSZpoG2GiNr27Jfkj7SuCcmBsELRTagiYX6mu5 l3kwv2NzKSL/A== From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Sebastian Reichel , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 3/3] power: supply: s3c_adc_battery: remove unused pdata in suspend/resume Date: Wed, 10 Feb 2021 18:21:08 +0100 Message-Id: <20210210172108.334896-3-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210210172108.334896-1-krzk@kernel.org> References: <20210210172108.334896-1-krzk@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The "pdata" local variable is not used in suspend/resume handlers since commit 7776bcd241e0 ("power: supply: s3c-adc-battery: Convert to GPIO descriptors"): drivers/power/supply/s3c_adc_battery.c: In function ‘s3c_adc_bat_suspend’: drivers/power/supply/s3c_adc_battery.c:405:28: warning: unused variable ‘pdata’ [-Wunused-variable] drivers/power/supply/s3c_adc_battery.c: In function ‘s3c_adc_bat_resume’: drivers/power/supply/s3c_adc_battery.c:422:28: warning: unused variable ‘pdata’ [-Wunused-variable] Signed-off-by: Krzysztof Kozlowski --- drivers/power/supply/s3c_adc_battery.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/power/supply/s3c_adc_battery.c b/drivers/power/supply/s3c_adc_battery.c index de98aea53a24..dc700066d7bc 100644 --- a/drivers/power/supply/s3c_adc_battery.c +++ b/drivers/power/supply/s3c_adc_battery.c @@ -402,8 +402,6 @@ static int s3c_adc_bat_remove(struct platform_device *pdev) static int s3c_adc_bat_suspend(struct platform_device *pdev, pm_message_t state) { - struct s3c_adc_bat_pdata *pdata = pdev->dev.platform_data; - if (main_bat.charge_finished) { if (device_may_wakeup(&pdev->dev)) enable_irq_wake( @@ -419,8 +417,6 @@ static int s3c_adc_bat_suspend(struct platform_device *pdev, static int s3c_adc_bat_resume(struct platform_device *pdev) { - struct s3c_adc_bat_pdata *pdata = pdev->dev.platform_data; - if (main_bat.charge_finished) { if (device_may_wakeup(&pdev->dev)) disable_irq_wake(