From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753504AbaCMJMk (ORCPT ); Thu, 13 Mar 2014 05:12:40 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:55333 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753213AbaCMJMh (ORCPT ); Thu, 13 Mar 2014 05:12:37 -0400 Date: Thu, 13 Mar 2014 10:12:35 +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: <20140313091234.GC9494@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> <20140228100114.GA13189@amd.pavel.ucw.cz> <20140307201039.GB27645@amd.pavel.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 Hi! > > 30*HZ means 30 seconds in the kernel... what is hard to understand > > about it? > > Well I might be picky, but since it is a charging algorithm dealing with > ampères, volts, constant-current/constant-voltage, watchdogs and > timeouts, all stated in SI units, it would be nice if all such constants > were specified in simple units instead of kernel-specific terms. I agree HZ is badly named, but hopefully anyone working on kernel is already familiar with it. But... what would actually help: I believe we should introduce milivolt_t, miliamp_t, milisec_t etc... types. Storing milivolts in int, then having comment saying "milivolts" is just wrong. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html