Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751370AbaB1KBV (ORCPT ); Fri, 28 Feb 2014 05:01:21 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:37949 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750927AbaB1KBQ (ORCPT ); Fri, 28 Feb 2014 05:01:16 -0500 Date: Fri, 28 Feb 2014 11:01:15 +0100 From: Pavel Machek To: Linus Walleij Cc: Jenny TC , "linux-kernel@vger.kernel.org" , Dmitry Eremin-Solenikov , Anton Vorontsov , Anton Vorontsov , Kim Milo , Lee Jones , Jingoo Han , Chanwoo Choi , Sachin Kamat , Lars-Peter Clausen , Pali =?iso-8859-1?Q?Roh=E1r?= , Rhyland Klein , "Rafael J. Wysocki" , David Woodhouse , Tony Lindgren , Russell King , Sebastian Reichel , Aaro Koskinen , Pallala Ramakrishna , =?utf-8?B?0JjQstCw0LnQu9C+INCU0LjQvNC40YLRgNC+0LI=?= , Linux-OMAP Subject: Re: [PATCH 2/4] power_supply: Introduce generic psy charging driver Message-ID: <20140228100114.GA13189@amd.pavel.ucw.cz> References: <1392875640-29230-1-git-send-email-jenny.tc@intel.com> <1392875640-29230-3-git-send-email-jenny.tc@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2014-02-27 21:08:01, Linus Walleij wrote: > On Thu, Feb 20, 2014 at 6:53 AM, Jenny TC wrote: > > > +++ b/include/linux/power/power_supply_charger.h > > > +#define MAX_CUR_VOLT_SAMPLES 3 > > +#define DEF_CUR_VOLT_SAMPLE_JIFF (30*HZ) > > Why are things defined in Jiffies like this insead of seconds, milliseconds > etc? This will vary with the current operating frequency of the system, > why should physical measurements do that? It is actually ok. The define is relative to jiffies, and that's what interface expects. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/