Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751705Ab3F3Xvu (ORCPT ); Sun, 30 Jun 2013 19:51:50 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:14944 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750868Ab3F3Xvt (ORCPT ); Sun, 30 Jun 2013 19:51:49 -0400 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 X-AuditID: cbfee690-b7f6f6d00000740c-6a-51d0c4930466 Content-transfer-encoding: 8BIT Message-id: <51D0C490.6090804@samsung.com> Date: Mon, 01 Jul 2013 08:51:44 +0900 From: jonghwa3.lee@samsung.com User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120411 Thunderbird/11.0.1 To: Axel Lin Cc: Mark Brown , Myungjoo Ham , Liam Girdwood , linux-kernel@vger.kernel.org Subject: Re: [PATCH] regulator: max77693: Fix trivial typo References: <1372477049.9121.0.camel@phoenix> In-reply-to: <1372477049.9121.0.camel@phoenix> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIIsWRmVeSWpSXmKPExsWyRsSkSHfykQuBBocnS1ocmfOV2WLqwyds Ft+udDBZXN41h83iduMKNgdWj52z7rJ7tP0s89i0qpPNo2/LKkaPz5vkAlijuGxSUnMyy1KL 9O0SuDLuve9nLZjDXnGrbR5rA+Mr1i5GDg4JAROJY6fUuhg5gUwxiQv31rN1MXJxCAksZZR4 d/o5O0TCROL1qUlMEIlFjBJf/zWxgiR4BQQlfky+xwIyiFlAXuLIpWyQMLOAusSkeYuYIepf MkocmnYUql5LYtqnu0wgNouAqkT7g41gcTYBOYm3Td8YQWxRgTCJqxOOs4DYIgJKEqvuX2YB GcQsMJFRYvfXmWBXCwtYSWybaAdSIySgK9F0eS8biM0poCfR//ASWL2EwDF2ids7PzJDLBOQ +Db5EAvEx7ISmw4wQzwmKXFwxQ2WCYxis5C8MwvhnVlI3lnAyLyKUTS1ILmg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cpUv/br1WGnrOt/nzVomi3DcGndHOOJ3lG1r/YItSYGzfoQfHONyusjZxki 1W2/JyclHV7AJBCa0/XvcHGAXXDo5VaXXuZ1zC6/9bm3vPb0PbTa+MKWoy/WMc+8+FbbIyM4 YK9gxlq56AZW/Wm2+kosxRmJhlrMRcWJAF9Wpb4iAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1139 Lines: 35 On 2013년 06월 29일 12:37, Axel Lin wrote: > Fix trivial typo in the equation to check upper bound of current setting. > > Signed-off-by: Axel Lin > --- > drivers/regulator/max77693.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/regulator/max77693.c b/drivers/regulator/max77693.c > index 674ece7..d45a4dd 100644 > --- a/drivers/regulator/max77693.c > +++ b/drivers/regulator/max77693.c > @@ -97,7 +97,7 @@ static int max77693_chg_set_current_limit(struct regulator_dev *rdev, > while (chg_min_uA + CHGIN_ILIM_STEP_20mA * sel < min_uA) > sel++; > > - if (chg_min_uA * CHGIN_ILIM_STEP_20mA * sel > max_uA) > + if (chg_min_uA + CHGIN_ILIM_STEP_20mA * sel > max_uA) > return -EINVAL; > > /* the first four codes for charger current are all 60mA */ Acked-by: Jonghwa Lee Thanks, Jonghwa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/