From patchwork Fri Oct 25 04:53:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonghwa Lee X-Patchwork-Id: 3094181 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2E5D7BF924 for ; Fri, 25 Oct 2013 04:53:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4337B20497 for ; Fri, 25 Oct 2013 04:53:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5E58D203EC for ; Fri, 25 Oct 2013 04:53:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751306Ab3JYExo (ORCPT ); Fri, 25 Oct 2013 00:53:44 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:29614 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751237Ab3JYExn (ORCPT ); Fri, 25 Oct 2013 00:53:43 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MV70039JK6J6DB0@mailout3.samsung.com> for linux-pm@vger.kernel.org; Fri, 25 Oct 2013 13:53:28 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.115]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id B7.02.10672.849F9625; Fri, 25 Oct 2013 13:53:28 +0900 (KST) X-AuditID: cbfee68d-b7fa16d0000029b0-2e-5269f948e8ef Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id D1.E4.08134.749F9625; Fri, 25 Oct 2013 13:53:28 +0900 (KST) Received: from localhost.localdomain ([10.252.82.199]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MV7009XAK914D10@mmp2.samsung.com>; Fri, 25 Oct 2013 13:53:27 +0900 (KST) From: Jonghwa Lee To: linux-pm@vger.kernel.org Cc: anton@enomsg.org, dwmw2@infradead.org, myungjoo.ham@samsung.com, cw00.choi@samsung.com, Jonghwa Lee Subject: [PATCH] battery: max17042: Fix temperature unit to milli centigrade. Date: Fri, 25 Oct 2013 13:53:18 +0900 Message-id: <1382676798-27835-1-git-send-email-jonghwa3.lee@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrELMWRmVeSWpSXmKPExsWyRsSkWNfjZ2aQwd2znBYHt2paXP/ynNVi 4srJzBadZ58wW3zuPcJocbtxBZsDm8eE/k+MHptXaHn0bVnF6PF5k1wASxSXTUpqTmZZapG+ XQJXxpwp+9kK7nNUzL1yla2BcQ57FyMnh4SAicScE0uYIWwxiQv31rOB2EICSxklnmwXhanp f3aBqYuRCyg+nVFi/teLzBBOG5PEu0NfmUCq2AR0JP7vuwk2VURARmLqlf2sIEXMAi2MEm8O /GEESQgL+Er8P7oRrIFFQFXi5sE2sDivgIfErAungJo5gNYpSMyZZAPSKyHwnk2i7cQTRoh6 AYlvkw+xQNTISmw6AHW1pMTBFTdYJjAKLmBkWMUomlqQXFCclF5kqFecmFtcmpeul5yfu4kR GJ6n/z3r3cF4+4D1IcZkoHETmaVEk/OB4Z1XEm9obGZkYWpiamxkbmlGmrCSOG/Sw6QgIYH0 xJLU7NTUgtSi+KLSnNTiQ4xMHJxSDYybU37MLJVkfSKVrMDmGpS374rv0cKD2oetHgUxqfNv caoNsVc5L+Ce56H5uflx/Rb+MEbRCa+lpv14v7vR6sVUCXWzOJVVTCeXLTUv/hjYWL/vCb+y 7apvKgZuKtxrrtzNi1n84UikR/v7K33WMkEvZ/950pTxXvF11oZC3xMhq/WUxNL53iixFGck GmoxFxUnAgCXs744ZQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAIsWRmVeSWpSXmKPExsVy+t9jQV2Pn5lBBj9mMlsc3Kppcf3Lc1aL iSsnM1t0nn3CbPG59wijxe3GFWwObB4T+j8xemxeoeXRt2UVo8fnTXIBLFENjDYZqYkpqUUK qXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5QLuVFMoSc0qBQgGJxcVK +naYJoSGuOlawDRG6PqGBMH1GBmggYQ1jBlzpuxnK7jPUTH3ylW2BsY57F2MnBwSAiYS/c8u MEHYYhIX7q1n62Lk4hASmM4oMf/rRWYIp41J4t2hr2BVbAI6Ev/33QTrFhGQkZh6ZT8rSBGz QAujxJsDfxhBEsICvhL/j24Ea2ARUJW4ebANLM4r4CEx68IpoGYOoHUKEnMm2Uxg5F7AyLCK UTS1ILmgOCk910ivODG3uDQvXS85P3cTIzj8n0nvYFzVYHGIUYCDUYmHN2FGZpAQa2JZcWXu IUYJDmYlEd6a00Ah3pTEyqrUovz4otKc1OJDjMlAyycyS4km5wNjM68k3tDYxMzI0sjc0MLI 2Jw0YSVx3oOt1oFCAumJJanZqakFqUUwW5g4OKUaGCdGKi2dNHkai8AzV7Z88a1MnOHv/I9e fbz28/lCkUVSnOapQpzz5ms3/qjkjlTyFXb2jCxY1+Oz/5rV4zlvV1gJFauZJDWmFk6fIVfM laO88reybFnl3Zxjn5xKJW7MUpkYGmigsJv5+/FTMj1F8xmnXTjMHXFrahbvuef+ZVy6svJv zv/JVWIpzkg01GIuKk4EAGDLsszDAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Standard temp node represents temperature of power supply class in milli centigrade. So fix max17042 fuel gauge driver to follow the standard. (deci-centigrade --> milli-centigrade) Signed-off-by: Jonghwa Lee Signed-off-by: Myungjoo Ham --- drivers/power/max17042_battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/max17042_battery.c b/drivers/power/max17042_battery.c index d664ef5..892ecfc 100644 --- a/drivers/power/max17042_battery.c +++ b/drivers/power/max17042_battery.c @@ -220,9 +220,9 @@ static int max17042_get_property(struct power_supply *psy, val->intval = (0x7fff & ~val->intval) + 1; val->intval *= -1; } - /* The value is converted into deci-centigrade scale */ + /* The value is converted into milli-centigrade scale */ /* Units of LSB = 1 / 256 degree Celsius */ - val->intval = val->intval * 10 / 256; + val->intval = val->intval * 1000 / 256; break; case POWER_SUPPLY_PROP_CURRENT_NOW: if (chip->pdata->enable_current_sense) {