Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp948987rwl; Thu, 5 Jan 2023 06:50:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXvNaYVokQzEKLQBTg7xPSo1jY8qf8fpp+2Xwne25L/B+uZo/8AXH0j90p+m8ra4XOs/A6qj X-Received: by 2002:a17:907:6f09:b0:7f7:a985:1849 with SMTP id sy9-20020a1709076f0900b007f7a9851849mr45988826ejc.24.1672930237448; Thu, 05 Jan 2023 06:50:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672930237; cv=none; d=google.com; s=arc-20160816; b=r0+q17ofOlSdyFj5FODXP0fd4WYWTSDUwfs946iQSaRPByUKxTxdnq1XxD2Ra5bXVW cDp9AvIySiHI1XDWeRMaT22o1YWkSOw/pVyWyKdR7mSdhpnsS9981URfu8CoVv0wHx4g it8/g2qJbm1tO69sGDehaKBAh4Ji+VXzamE4M98BvwekFxLHmINCs/eNoCMdC/XnQcO3 2m/bKTICGR68lDyD0jzVBFkONUYs59gU8Cr3Mw8QoVtzT2TRqZDsulMUf1oICK6rSjBS a7NNnwxBZJt62lJCQH9nis+s2ahMO1alfvlZg0YUuW50cyS0nT+Q7gTYXutB2kUI3hvU OG3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+dt3Z+L/fCeF1YdjQaNzRexEuNw5gOWY7BKxLMtF7Qg=; b=VV0svfSMkj4vGcD2BCSCr0rJOMH+Fv+4uM9hGq+d0+h7G/sdPhjv3ZhNXFfdKGQg2m ESGibGIWoMMn6noFw0/uBsG5C/kbOWBCDwsuUoNpZsW16frBJ/rEfeHNsMsZay74iuSv Ef415oecF+nbUL1qUAoPblyRxAYMipEEAn1GopM8uRFwRr/7sRidTgvFgs3UB9sgS0g0 Q1Mtti3cwyJaE8ka7mBJf7I+1SPUKxGR9gJV9QCw7bxW1+aUGeYY2SjFysrRb3nOcZJL L7CrE6tt150kRQXh0pCtY1CWuXVceqtz7+lTK6z+vchhvo7TEjL07CQmhU40vgCQlQz4 VAGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TnoemKZz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hu8-20020a170907a08800b0084cd9dba340si7945629ejc.962.2023.01.05.06.50.24; Thu, 05 Jan 2023 06:50:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TnoemKZz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233489AbjAENrp (ORCPT + 56 others); Thu, 5 Jan 2023 08:47:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233744AbjAENr0 (ORCPT ); Thu, 5 Jan 2023 08:47:26 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEDA53E0F7; Thu, 5 Jan 2023 05:47:25 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7C08F61A94; Thu, 5 Jan 2023 13:47:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCDB1C433EF; Thu, 5 Jan 2023 13:47:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672926444; bh=FJKWxab8jgdL8QRSTYPu5QbZT8XQ3r9MStsrq3HgraI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TnoemKZzlRtc4RbEDYwYrCxMaldvoq9hyvkFjNaiMs5ONNoYxKPPzSjf43HdnWHT7 Jv74JP+8X5YGEHqPaIgTm3LPX1TA5JwLc/VA8FKXaqF+4RDrdoBrQkBLP1yk2Ux1cw He4/DRqeYpjZ+mjxs6CxmaJfUgGXwaJDMCYs+GhhL35wsZ66DwI7ciwkwZOahik8kG Iu31DzXvHzbi8gD0KfPvb0wXW1fj0Hyv8+p4NN19KO9YdblTjiCKI5PiAit7Ls4IAy /gh112XMwrQWYIkRKDAtGUSYs9atY1N+eydNJENVGsRQyZO+R79V93XCTvl/d63IYp wcA2KTxneqmYQ== From: Arnd Bergmann To: Robert Jarzmik Cc: Daniel Mack , Haojian Zhuang , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Sebastian Reichel , Anton Vorontsov , linux-pm@vger.kernel.org Subject: [PATCH 16/27] power: remove pda_power supply driver Date: Thu, 5 Jan 2023 14:46:11 +0100 Message-Id: <20230105134622.254560-17-arnd@kernel.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230105134622.254560-1-arnd@kernel.org> References: <20230105134622.254560-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,TVD_SUBJ_WIPE_DEBT autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann This driver was used for a couple of Intel PXA and Samsung S3C24xx based PDAs, but all of those are now removed from the kernel, so the driver itself is no longer useful. Cc: Sebastian Reichel Cc: Anton Vorontsov Cc: linux-pm@vger.kernel.org Signed-off-by: Arnd Bergmann --- Documentation/power/power_supply_class.rst | 4 +- arch/arm/mach-tegra/tegra.c | 1 - drivers/power/supply/Kconfig | 9 - drivers/power/supply/Makefile | 1 - drivers/power/supply/pda_power.c | 520 --------------------- include/linux/pda_power.h | 39 -- 6 files changed, 2 insertions(+), 572 deletions(-) delete mode 100644 drivers/power/supply/pda_power.c delete mode 100644 include/linux/pda_power.h diff --git a/Documentation/power/power_supply_class.rst b/Documentation/power/power_supply_class.rst index c04fabee0a58..da8e275a14ff 100644 --- a/Documentation/power/power_supply_class.rst +++ b/Documentation/power/power_supply_class.rst @@ -40,8 +40,8 @@ kind of power supply, and can process/present them to a user in consistent manner. Results for different power supplies and machines are also directly comparable. -See drivers/power/supply/ds2760_battery.c and drivers/power/supply/pda_power.c -for the example how to declare and handle attributes. +See drivers/power/supply/ds2760_battery.c for the example how to declare +and handle attributes. Units diff --git a/arch/arm/mach-tegra/tegra.c b/arch/arm/mach-tegra/tegra.c index ab5008f35803..9ef1dfa7b926 100644 --- a/arch/arm/mach-tegra/tegra.c +++ b/arch/arm/mach-tegra/tegra.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig index 3c37f3a6431c..e2f8dfcdd2a9 100644 --- a/drivers/power/supply/Kconfig +++ b/drivers/power/supply/Kconfig @@ -28,15 +28,6 @@ config POWER_SUPPLY_HWMON Say 'Y' here if you want power supplies to have hwmon sysfs interface too. - -config PDA_POWER - tristate "Generic PDA/phone power driver" - depends on !S390 - help - Say Y here to enable generic power driver for PDAs and phones with - one or two external power supplies (AC/USB) connected to main and - backup batteries, and optional builtin charger. - config APM_POWER tristate "APM emulation for class batteries" depends on APM_EMULATION diff --git a/drivers/power/supply/Makefile b/drivers/power/supply/Makefile index 55c1aae91d1d..8cb3c7f5c111 100644 --- a/drivers/power/supply/Makefile +++ b/drivers/power/supply/Makefile @@ -9,7 +9,6 @@ obj-$(CONFIG_POWER_SUPPLY) += power_supply.o obj-$(CONFIG_POWER_SUPPLY_HWMON) += power_supply_hwmon.o obj-$(CONFIG_GENERIC_ADC_BATTERY) += generic-adc-battery.o -obj-$(CONFIG_PDA_POWER) += pda_power.o obj-$(CONFIG_APM_POWER) += apm_power.o obj-$(CONFIG_AXP20X_POWER) += axp20x_usb_power.o obj-$(CONFIG_IP5XXX_POWER) += ip5xxx_power.o diff --git a/drivers/power/supply/pda_power.c b/drivers/power/supply/pda_power.c deleted file mode 100644 index 03a37fd6be27..000000000000 diff --git a/include/linux/pda_power.h b/include/linux/pda_power.h deleted file mode 100644 index 2a69db4b60b7..000000000000 -- 2.39.0