Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6091884ybi; Sun, 21 Jul 2019 09:04:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjqd4jFvtkTwZDwgQtJFW5R6UKQOr/dC+dHlouFr/eQl6yaxfzL4O50qtl/66hIGPA70vW X-Received: by 2002:a17:90a:5288:: with SMTP id w8mr72590270pjh.61.1563725073886; Sun, 21 Jul 2019 09:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563725073; cv=none; d=google.com; s=arc-20160816; b=rCVkYPmlnrInK8wbno+NmIMwOsd3qCTkpRS/ibbBunoJiggGVH8O5LhWONU8NGQ/ps bYSTEZk89/GkLf/DyS2HdjU1fEsIcGR5+Xvwx3Zci5D9oIQRF3HJuRfstkkURu7dhYDY mQWwKvZPL2JmDjCFBti9WRa4lKeGicjuiUuussbLeq1DXNujObupEArViQPTTvwaFXdu FeWLNK0P2QVPL9eZgp5EBaeO8ezOIfcPJOswp9cp8LjXF14Psq0ixwfkrUeUnm/e6ZGv 1D0C4i8krVWqFOY12UkqsU9TMJMGyXPQ79Wfmflg5WmS38jOwJJNH0/p8hXMm7AGv32O nveQ== 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=VjtdW1bpSN5TfbUmZfE4aXhADwdiIeZs52SVyuYsCQc=; b=VQL4COjG0/nkFuDU4idThk/KAUfcDvMo+Q1Wy99oWtQHUBl0V8WXpBQFNeQ2f7VK/U AFGmafTI/21R8EOz/PaIWo58E+Vbd21usOjvPSlBtrPNzZ8gI8jZMnVjdSE9mqTnDNCT Ny2qeKHf+iFa3GrLksQ7w87UNQTX0p9jHHjqCCN2wJxatDCmNHOv91KW9o6dawglhRXT v/3rqCB4sDKpSrs9yaf38O11u1Cj8z++/+jUG+EgOXSgXb2LiIdub/TtVBssafXW0lb3 yCqLgX/8Et27xO1qS4us1TIDVHqEtHdp6lFE+HJkgumALdfBs27ZWQyQFDJxWKLmSJKT qwDA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p19si6623512pfn.53.2019.07.21.09.04.18; Sun, 21 Jul 2019 09:04:33 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726851AbfGUQDy (ORCPT + 99 others); Sun, 21 Jul 2019 12:03:54 -0400 Received: from smtp01.smtpout.orange.fr ([80.12.242.123]:55508 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726781AbfGUQDy (ORCPT ); Sun, 21 Jul 2019 12:03:54 -0400 Received: from localhost.localdomain ([92.140.204.221]) by mwinf5d01 with ME id fU3q2000X4n7eLC03U3rbD; Sun, 21 Jul 2019 18:03:52 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 21 Jul 2019 18:03:52 +0200 X-ME-IP: 92.140.204.221 From: Christophe JAILLET To: sre@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] power: supply: max17042_battery: Fix a typo in function names Date: Sun, 21 Jul 2019 18:03:28 +0200 Message-Id: <20190721160328.24660-1-christophe.jaillet@wanadoo.fr> 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 It is likely that 'max10742_[un]lock_model()' functions should be 'max17042_[un]lock_model()' (0 and 7 switched in 10742) Signed-off-by: Christophe JAILLET --- drivers/power/supply/max17042_battery.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/power/supply/max17042_battery.c b/drivers/power/supply/max17042_battery.c index 581c6bd23388..da3904822929 100644 --- a/drivers/power/supply/max17042_battery.c +++ b/drivers/power/supply/max17042_battery.c @@ -511,7 +511,7 @@ static inline void max17042_override_por(struct regmap *map, regmap_write(map, reg, value); } -static inline void max10742_unlock_model(struct max17042_chip *chip) +static inline void max17042_unlock_model(struct max17042_chip *chip) { struct regmap *map = chip->regmap; @@ -519,7 +519,7 @@ static inline void max10742_unlock_model(struct max17042_chip *chip) regmap_write(map, MAX17042_MLOCKReg2, MODEL_UNLOCK2); } -static inline void max10742_lock_model(struct max17042_chip *chip) +static inline void max17042_lock_model(struct max17042_chip *chip) { struct regmap *map = chip->regmap; @@ -577,7 +577,7 @@ static int max17042_init_model(struct max17042_chip *chip) if (!temp_data) return -ENOMEM; - max10742_unlock_model(chip); + max17042_unlock_model(chip); max17042_write_model_data(chip, MAX17042_MODELChrTbl, table_size); max17042_read_model_data(chip, MAX17042_MODELChrTbl, temp_data, @@ -589,7 +589,7 @@ static int max17042_init_model(struct max17042_chip *chip) temp_data, table_size); - max10742_lock_model(chip); + max17042_lock_model(chip); kfree(temp_data); return ret; -- 2.20.1