From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH 2/4] power_supply: Introduce generic psy charging driver Date: Fri, 14 Mar 2014 19:25:24 +0000 Message-ID: <20140314192524.GB366@sirena.org.uk> 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> <20140313091234.GC9494@amd.pavel.ucw.cz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iNbuUyhyM/niA6/9" Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Linus Walleij Cc: Pavel Machek , Liam Girdwood , 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 = List-Id: linux-omap@vger.kernel.org --iNbuUyhyM/niA6/9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Mar 14, 2014 at 11:36:40AM +0100, Linus Walleij wrote: > On Thu, Mar 13, 2014 at 10:12 AM, Pavel Machek wrote: > > 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. > Hm! I bet the regulator subsystem maintainers have opinions > on that. The regulator subsystem is quite happily using unsigned ints here, usually we're using hungarian style names to clarify the type where that's useful (it tends to be closer to the usual naming conventions when representing these things mathematically). I'm not sure that having a typedef is going to buy us terribly much unless we convert the kernel to C++ where we can do more exciting stuff. I would say that we are using microvolts rather than milivolts since it does occasionally matter. --iNbuUyhyM/niA6/9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJTI1ehAAoJELSic+t+oim9qmoP/Ripi+BBz/3FzmqwZJUwMuBs 8OrQ2Yr9Yez0ZtV73nzfVnKK5q53InLjSUkfVdoA7xB1XJokWFAGel+cWNLCyZNs vxW180APi1XhKKz7EmULfewe7hC7t8C3/tyzrfqZ5au0ngC7dCR9dZY+0dEKrT/0 TSarW5jk2Z4O2ETVhhq2TJ3mZHh/6fV1A0M1jzwEBtMHdzGMQnJIwXTy2QFUf0OD fXkAqtspPG2eRGAbwGANbNZS8V8tgnAAwYutRVdjNSclS01vAJMgT6QxKcCVvLRB PkqRHnQDLELaxSV88F95lURmQjFCuuU8COzK4xnNntrjHmbcUlBspKXRkNj+hAg4 0AoNH+FSx2JxWjKW0fO8ifzYGxMHfdBgMHlq+5zKfHDz9S9y7DpP9xVG6ieAxzrh AvDqmvDBh4qvXenu5eVEQMn/JDtcKaIkQ1f6HXCU80lVjc8dco8oeybcvvauO3L2 XW3AhLDn1bXLFqbT2h5iUPIzo3mO5PFmTs01EgLQE3Qs/zb8SeIhttyl8p+ETlqw dxpmYNAjEa0xl7NXpiXkTM53TLWE9tEu1fXu1CSAl9ZXz1FxO7A8RU/WsfZJs2L6 j+XAbYzVD9d1oiYA0Q5Q534RWyFeUOtgIBMe+9qinPklsCkWO5VAklsBts8EKAz5 IcRkV5+OeFigcoCs5pnk =LQJB -----END PGP SIGNATURE----- --iNbuUyhyM/niA6/9--