Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2227792yba; Mon, 15 Apr 2019 07:31:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzjGQLJtRRB9Q1YxaPvYbYFlW+SKAuIxpEYmXac+Wf4EAqLR/bq8DEsSpjtE/4wHjR5ZRc X-Received: by 2002:a62:ed16:: with SMTP id u22mr76126618pfh.47.1555338707182; Mon, 15 Apr 2019 07:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555338707; cv=none; d=google.com; s=arc-20160816; b=TOja6Mzu5LXxumN9nAlomPbwghErLf9LGo5uj3EdOdQkoDAXAC1rjVBh5tg0HGVRUN E4p7Hr8KrpJV6Q0xU+U5KJGIVoXErEx0HapSa79xd5y2SgEu/LpC0UCW0mEvRJTsxpkW 4dB8qaB6OpZS1cHDUiunZ96DGmelxyRQVCM/VKINuEqEgiZgWdaBigPbOAyrNTsmM4u4 NqUWe9NEl8a3/cMhoDf939/bqW/w+UVnyIijDuB/Pu6dQN/0LixH+SYkCExQwF2cN+10 TAsO8GO7QFhgliiekckey2zHp3rq4bqQ4fB+nmW1QGTnw5NyWtaGtdPPnwRKEus5naXh LEQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=tu45nDM6fRlaYYXDy67VQq9c55I7ab9dZMbLl4lKGpQ=; b=e70W/zHcnT2M8bzuvj2rCHLDYTEjZM0j5IggGN2cEPazTeEfKWc2bKwVqO3HkE1HAM z7zbgSBTS/K1OgeEg1VCh6eP7XFDVSVknGr8tV1wcHREulDCAZ1dQO4Nx3JIYEjTV2Tu u+DQvnFZiPYyRGumM/bGEgZ0G9KVNCLQuXstF8kLjc6TokU+FD2GeznbpkIiPXWgfoxy uz3115AAJdphV7nT/MU7hjo4IByYdCu8kx8S6HLphvnhMWxxE5p+Gijkrw7PpWn2FlBh jC20Ppc9AAfzgq1diRQQzbhKiUDFw506T9ivQXwJCeLhZFUKLXXUtLSTQX8W0wi+WG4/ LW7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a192si26550549pge.50.2019.04.15.07.31.29; Mon, 15 Apr 2019 07:31:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727413AbfDOO30 (ORCPT + 99 others); Mon, 15 Apr 2019 10:29:26 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:45666 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbfDOO3Z (ORCPT ); Mon, 15 Apr 2019 10:29:25 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 69C9F2787E2 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org, Sebastian Reichel Cc: kernel@collabora.com, linux-pm@vger.kernel.org Subject: [PATCH] power: supply: core: fix typo in function to get current charge control limit Date: Mon, 15 Apr 2019 16:29:18 +0200 Message-Id: <20190415142918.4383-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is a spelling mistake in ps_get_cur_charge_cntl_limit function so replace 'chrage' for 'charge'. Signed-off-by: Enric Balletbo i Serra --- drivers/power/supply/power_supply_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c index c917a8b43b2b..ef2aecfe2cd2 100644 --- a/drivers/power/supply/power_supply_core.c +++ b/drivers/power/supply/power_supply_core.c @@ -899,7 +899,7 @@ static int ps_get_max_charge_cntl_limit(struct thermal_cooling_device *tcd, return ret; } -static int ps_get_cur_chrage_cntl_limit(struct thermal_cooling_device *tcd, +static int ps_get_cur_charge_cntl_limit(struct thermal_cooling_device *tcd, unsigned long *state) { struct power_supply *psy; @@ -934,7 +934,7 @@ static int ps_set_cur_charge_cntl_limit(struct thermal_cooling_device *tcd, static const struct thermal_cooling_device_ops psy_tcd_ops = { .get_max_state = ps_get_max_charge_cntl_limit, - .get_cur_state = ps_get_cur_chrage_cntl_limit, + .get_cur_state = ps_get_cur_charge_cntl_limit, .set_cur_state = ps_set_cur_charge_cntl_limit, }; -- 2.20.1