Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4737473pxb; Tue, 2 Nov 2021 15:04:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVHY/AlPfS+jD+fwLiDi8tr134GcjsGxZhSZN+Uetwu4flq1O6m8JzbNaiEzwYcbI/5BgT X-Received: by 2002:a17:906:4fcd:: with SMTP id i13mr10748263ejw.472.1635890672476; Tue, 02 Nov 2021 15:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635890672; cv=none; d=google.com; s=arc-20160816; b=UOaVzedRtR9qZikIOoDmlbFdUTpzaTgkQH6srD1nJ+tzex8PAr2VfsYUgmySebhN5V oL9uvf11nHBi0RMfQtT37NEWJOGKtQVgE41V3BC5+pQa1pWBGayWIbfGlaTLZWo4lAEn dl4TacIni/aBaWfFViIcjtuH1bB7vgEipd2u2gdZnvVLt6Ax8e8OUr320D5CM9AMjCgX WdnAsfwnHv1E+EkBx/i0AVGnw9rEDhhExgkAWcj6LAuoKgsw3Umz/Ui453rJv7TWwaBY kwKXFfr1nVIaqvzx5Ao4xDaoEswmYxNa9pCJWzSXip8JqqNBGvumoflcGdEXyBsgAvqF HgmA== 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:dkim-filter; bh=dh+KdmP6MoWoVW3W+iVDSJslEzZnAzewMsCZBf9TP38=; b=tiES2AzZ0PXrDnnsn04DCC3G4OJLVk6+Vd6B55LexqC0HGAHo6Nzhkec7cXVdhnvPU TKJerhWiI7lDtCYBLVZ/Kazicqnifgtjf/fE2RVIqn9gL5uOmo2Z+ySZbd14m5oWXLMx xdK1bWi7wSViQ3A2HFmAOEWH+V9/TAraitPuGDW6enE2cFa2W+t83Fp9NU9uRfrG81n0 g5A0pdYzFB83h4//IiYm2AFl9vcDm2n0oAU4Oi8o3cweayC4N9UTz8vf28mtBxjwQbf2 ZMBwhYkJaYXKa+SxdltU63ivRwiq9IGQZBHuuybuOM0PjtuUpt0y1XbG7Nsm95IGvW1r GqDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=SNNsAYsM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l16si443368ejo.393.2021.11.02.15.04.07; Tue, 02 Nov 2021 15:04:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=SNNsAYsM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231230AbhKBWEy (ORCPT + 99 others); Tue, 2 Nov 2021 18:04:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbhKBWEx (ORCPT ); Tue, 2 Nov 2021 18:04:53 -0400 Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 713ACC061714; Tue, 2 Nov 2021 15:02:18 -0700 (PDT) Received: from meer.lwn.net (unknown [IPv6:2601:281:8300:104d::5f6]) by ms.lwn.net (Postfix) with ESMTPA id E8A8D5EBE; Tue, 2 Nov 2021 22:02:17 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net E8A8D5EBE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1635890538; bh=dh+KdmP6MoWoVW3W+iVDSJslEzZnAzewMsCZBf9TP38=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SNNsAYsMmzIeIBbJZfr6djLuXa9WdN8+vyk1Lkp3g0PL0vnsMZGLG7eLhgLpl2XVI sEMH56xmyvPsF0W+UXgo80OR1DaPExQaKLHHa0HWVSeAGv7uY+KNlszMYYWU0ZbNzM 0kWZ/rB9BkZDYiSKY/QCPyqBlEMCwPZC98bVDjQmnoGBVvjX0y6v0hOXS1Weuh0PbU 7Y+mbWBjMYrIJHifyWx5S4ChfKkO5M+5j5ucw7LAkFdx/WMtnaGi1132gplQo1mHAT TeauXEyyBGA0J/99Ig2XHHB8SVBqKhVXLB7SDKRneGXNC2/k6huM+E6DPRCJVLBMlH mg/sNlSB2593w== From: Jonathan Corbet To: linux-kernel@vger.kernel.org Cc: Jonathan Corbet , Paul Cercueil , Lee Jones , Paul Burton , Sebastian Reichel , linux-pm@vger.kernel.org Subject: [PATCH 1/9] Remove unused headers and Date: Tue, 2 Nov 2021 16:01:55 -0600 Message-Id: <20211102220203.940290-2-corbet@lwn.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211102220203.940290-1-corbet@lwn.net> References: <20211102220203.940290-1-corbet@lwn.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit ff71266aa490 ("mfd: Drop obsolete JZ4740 driver") removed the last file to include but left the header file itself behind. Nothing uses it, remove it now. Similarly, aea12071d6fc ("power/supply: Drop obsolete JZ4740 driver") deleted the last use of , so remove that one too. Cc: Paul Cercueil Cc: Lee Jones Cc: Paul Burton Cc: Sebastian Reichel Cc: linux-pm@vger.kernel.org Signed-off-by: Jonathan Corbet --- include/linux/jz4740-adc.h | 33 ---------------------------- include/linux/power/jz4740-battery.h | 15 ------------- 2 files changed, 48 deletions(-) delete mode 100644 include/linux/jz4740-adc.h delete mode 100644 include/linux/power/jz4740-battery.h diff --git a/include/linux/jz4740-adc.h b/include/linux/jz4740-adc.h deleted file mode 100644 index 19d995c8bf06..000000000000 --- a/include/linux/jz4740-adc.h +++ /dev/null @@ -1,33 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ - -#ifndef __LINUX_JZ4740_ADC -#define __LINUX_JZ4740_ADC - -struct device; - -/* - * jz4740_adc_set_config - Configure a JZ4740 adc device - * @dev: Pointer to a jz4740-adc device - * @mask: Mask for the config value to be set - * @val: Value to be set - * - * This function can be used by the JZ4740 ADC mfd cells to configure their - * options in the shared config register. -*/ -int jz4740_adc_set_config(struct device *dev, uint32_t mask, uint32_t val); - -#define JZ_ADC_CONFIG_SPZZ BIT(31) -#define JZ_ADC_CONFIG_EX_IN BIT(30) -#define JZ_ADC_CONFIG_DNUM_MASK (0x7 << 16) -#define JZ_ADC_CONFIG_DMA_ENABLE BIT(15) -#define JZ_ADC_CONFIG_XYZ_MASK (0x2 << 13) -#define JZ_ADC_CONFIG_SAMPLE_NUM_MASK (0x7 << 10) -#define JZ_ADC_CONFIG_CLKDIV_MASK (0xf << 5) -#define JZ_ADC_CONFIG_BAT_MB BIT(4) - -#define JZ_ADC_CONFIG_DNUM(dnum) ((dnum) << 16) -#define JZ_ADC_CONFIG_XYZ_OFFSET(dnum) ((xyz) << 13) -#define JZ_ADC_CONFIG_SAMPLE_NUM(x) ((x) << 10) -#define JZ_ADC_CONFIG_CLKDIV(div) ((div) << 5) - -#endif diff --git a/include/linux/power/jz4740-battery.h b/include/linux/power/jz4740-battery.h deleted file mode 100644 index 10da211678c8..000000000000 --- a/include/linux/power/jz4740-battery.h +++ /dev/null @@ -1,15 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* - * Copyright (C) 2009, Jiejing Zhang - */ - -#ifndef __JZ4740_BATTERY_H -#define __JZ4740_BATTERY_H - -struct jz_battery_platform_data { - struct power_supply_info info; - int gpio_charge; /* GPIO port of Charger state */ - int gpio_charge_active_low; -}; - -#endif -- 2.31.1