From patchwork Wed Oct 7 18:42:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H. Nikolaus Schaller" X-Patchwork-Id: 7346941 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B7661BEEA4 for ; Wed, 7 Oct 2015 18:48:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DFCEA206FB for ; Wed, 7 Oct 2015 18:48:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 49FD22072E for ; Wed, 7 Oct 2015 18:48:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751522AbbJGSss (ORCPT ); Wed, 7 Oct 2015 14:48:48 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.162]:50101 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751977AbbJGSsn (ORCPT ); Wed, 7 Oct 2015 14:48:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1444243722; l=951; s=domk; d=goldelico.com; h=References:In-Reply-To:References:In-Reply-To:Date:Subject:Cc:To: From; bh=V6wr+1G5VCPeL+ByojzdbskiUClEzDbWMnCO+fpb/u8=; b=hIJ+ErnJtCPqO9cH4vRAYIiEpPKJpY2cZIhwK0N/wCyy1Hql10i+E7n4QVrxKgE59+q nhkpqavimqo7GHoOUvYJ1mLpJrr2M058NJuFgejxRv7ji9uSKTjrVEanIpSbNfbqXS6Gt LT9qjpHqgyOIwvzFBFR1KkHkx/hAtldTuZM= X-RZG-AUTH: :JGIXVUS7cutRB/49FwqZ7WcecEarQROEYabkiUo6mSAGQ+qKID8oIJRhBQ== X-RZG-CLASS-ID: mo00 Received: from localhost.localdomain (p57AE01D2.dip0.t-ipconnect.de [87.174.1.210]) by smtp.strato.de (RZmta 37.13 DYNA|AUTH) with ESMTPA id q02ab6r97Igh8Fj; Wed, 7 Oct 2015 20:42:43 +0200 (CEST) From: "H. Nikolaus Schaller" To: =?UTF-8?q?Pali=20Roh=C3=A1r?= , Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse Cc: linux-pm@vger.kernel.org, NeilBrown , "H. Nikolaus Schaller" Subject: [PATCH 3/4] power:bq27x00: don't fill system log by missing battery Date: Wed, 7 Oct 2015 20:42:38 +0200 Message-Id: <73cb8d96728805597ecb50e7e7b51bf6272b6d61.1444243358.git.hns@goldelico.com> X-Mailer: git-send-email 2.5.1 In-Reply-To: References: In-Reply-To: References: 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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 From: NeilBrown Print message that battery is not calibrated only during debug build but not during normal operation. Signed-off-by: H. Nikolaus Schaller --- drivers/power/bq27x00_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c index 8287261f..709d1e4 100644 --- a/drivers/power/bq27x00_battery.c +++ b/drivers/power/bq27x00_battery.c @@ -491,7 +491,7 @@ static void bq27x00_update(struct bq27x00_device_info *di) if (cache.flags >= 0) { if (!is_bq27500 && !is_bq27425 && !is_bq27742 && !is_bq27510 && (cache.flags & BQ27000_FLAG_CI)) { - dev_info(di->dev, "battery is not calibrated! ignoring capacity values\n"); + dev_dbg(di->dev, "battery is not calibrated! ignoring capacity values\n"); cache.capacity = -ENODATA; cache.energy = -ENODATA; cache.time_to_empty = -ENODATA;