From patchwork Tue May 28 00:06:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dr. David Alan Gilbert" X-Patchwork-Id: 799745 Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00E63524C; Tue, 28 May 2024 00:06:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716854813; cv=none; b=f3LtqWcJ5Zax8MT7EIutPAgKlEnV0Io2aGeZ/M75Y0Es+QtKVWX3BVNKcDdQYwzPV8v0B8FwyPGFnjQ/xZTAH4VzPRi7toL8LOwiNfpnF6uyT3CCwfjRqSiOvHy69J/9r/q2ySWBiL0yEeMTHbF/xE1s2WWr8JN7QIEO4x+icsQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716854813; c=relaxed/simple; bh=k4G+jAKGNKDxOHGUvNAzqtpnPGgj4GhdstDH0kwqqsQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TLoAc+EXyfyjmwjmVK1VLhXm+Br54QVZgpwT4N/iwQ5LVg+Dg7utmcI3dWCxf9mj2YtovyuA16EKeILAA3QAHcNj+ouwfyiPXALNUQ6x5P1TODRFequXMYneD8R8NaLF0qrhY10hZ44aPH6Zp14wp3mKUa09k3dydmXmGrPmwzY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=TLbEtduH; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="TLbEtduH" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=kBL1ZEVIaCMy+JU9st0dS0LqC8kWc1aSFjAYCQfH6VE=; b=TLbEtduH3aGJT2ZN Q5N8sg6vls9zdJ73A1TY6a6mxWyw3LCPfxXPUmpqTujDPLbeRp23ulQnoan62wLTkJaQAUoqOp6HI iB+gKsWVhV2LuqSjPFl5ffIpz9F0fhLNhteZZJVUmbWLuDaosOURBxtnHnCasla2dcT8GH5A9897T gH4hgSEiZXmptSsJakIFJDMrao5QLUgZ7DkwX6Z1B+UQk3IDuhRB+8b6uN94MeLXYb1Wv8tCMtzJO y53Tiaon9g0Dn1R04ceVrQobEpU2o+D0I/l5D+kBYYK8rEeRcnsKPzKiM15PDqRkMVKAsXmUXvDFF EQqvg9jV3jnJxQWcxA==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1sBkMa-002pjT-2N; Tue, 28 May 2024 00:06:49 +0000 From: linux@treblig.org To: linus.walleij@linaro.org, mazziesaccount@gmail.com, sre@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH 1/2] power: supply: bd99954: remove unused struct 'battery_data' Date: Tue, 28 May 2024 01:06:33 +0100 Message-ID: <20240528000634.196707-2-linux@treblig.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240528000634.196707-1-linux@treblig.org> References: <20240528000634.196707-1-linux@treblig.org> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: "Dr. David Alan Gilbert" 'battery_data' is unused since the original commit 0902f8366491 ("power: supply: Support ROHM bd99954 charger"). Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/power/supply/bd99954-charger.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/power/supply/bd99954-charger.c b/drivers/power/supply/bd99954-charger.c index 1ed1d9f99fb3..54bf88262510 100644 --- a/drivers/power/supply/bd99954-charger.c +++ b/drivers/power/supply/bd99954-charger.c @@ -70,13 +70,6 @@ #include "bd99954-charger.h" -struct battery_data { - u16 precharge_current; /* Trickle-charge Current */ - u16 fc_reg_voltage; /* Fast Charging Regulation Voltage */ - u16 voltage_min; - u16 voltage_max; -}; - /* Initial field values, converted to initial register values */ struct bd9995x_init_data { u16 vsysreg_set; /* VSYS Regulation Setting */ From patchwork Tue May 28 00:06:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dr. David Alan Gilbert" X-Patchwork-Id: 799384 Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 19B4B3D60; Tue, 28 May 2024 00:06:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716854817; cv=none; b=E2RjUz9AgVyxbjfzl2Ah1y15qEyXQo7AOzsyuiJbBsAQoDnlbqGLMIPIbprTw7mKwYoJvxkbln1VUUfk2sDUAGJ6smlsCMg1pZ6d376/ae6SLZiugyZG/af76+u3djDSKpCIe+MRtqzhFqscVQYg9Wdsm2vw0/XqDAq4LMI3swk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716854817; c=relaxed/simple; bh=nHIJF35gTseYvkKr6yqDBvEr0/gnk5iz6v2MRmHRJ6o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ctj2iFaK/8rIc36J3o9RoUGN4dxB5eJ0LWEKOZWc7QEU2uIIB9mWoiQLZj7S1QehoE9xSXLTV363inaZ7VvC0glkr0ZD8QXpexEZRbN8s+HxvekuXWQJOhIpfDf/Z6taaisJp/J6RxpfXd1oDenqOxerUu/7GujCKWf7QM/kftQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=cHgIgS02; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="cHgIgS02" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=comtV4uctll963daNsHHBdXUj8VKgmG78S0R3+GGfUI=; b=cHgIgS02r2+tmi8r KIt3n0GJh5gQr3f8gehfSWbehaK1bwr5CGKzQgBKX0IYfHd2o6hcfnpfPufDjvKmuCMkM6JJto72V kwDxzbP2OYuLH4ko4C09208N2fVK/S8+ZpACt3bBmQpoYl40DcFrNIQ5g3Dwq+yRdZf2ud+i+sI+M e2+0NR22WZ5gPC5fNA+CMyyExDVzE6SBXHDWPT9trrEEL4yVDProz9EqEajgG5z50iq930DyZehhP INsrWxHgz0Hnnlco5xU8XouDsEpwhjjvvgx9AEcKmXI3iEicIo5qfk/Cc4197pH6tme/XEPh9nQ0N y8Yubw6vHjLTdHProQ==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1sBkMf-002pjT-0V; Tue, 28 May 2024 00:06:53 +0000 From: linux@treblig.org To: linus.walleij@linaro.org, mazziesaccount@gmail.com, sre@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH 2/2] power: supply: ab8500: remove unused struct 'inst_curr_result_list' Date: Tue, 28 May 2024 01:06:34 +0100 Message-ID: <20240528000634.196707-3-linux@treblig.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240528000634.196707-1-linux@treblig.org> References: <20240528000634.196707-1-linux@treblig.org> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: "Dr. David Alan Gilbert" 'inst_curr_result_list' is unused since the original commit 13151631b5bd ("ab8500-fg: A8500 fuel gauge driver"). Remove it. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Linus Walleij --- drivers/power/supply/ab8500_fg.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/power/supply/ab8500_fg.c b/drivers/power/supply/ab8500_fg.c index 2ccaf6116c09..270874eeb934 100644 --- a/drivers/power/supply/ab8500_fg.c +++ b/drivers/power/supply/ab8500_fg.c @@ -149,11 +149,6 @@ struct ab8500_fg_flags { bool batt_id_received; }; -struct inst_curr_result_list { - struct list_head list; - int *result; -}; - /** * struct ab8500_fg - ab8500 FG device information * @dev: Pointer to the structure device