Linus Torvalds b9d7e440fd Make 'string_to_grams()' use proper type safe types
Make it use 'weight_t' and hide the "grams" part inside the type.  That
was the whole point of the weight_t type, after all.  Returning a
"double" was always bogus, since we internally always do integer grams
(and the function actually used "rint()" to get all the rounding right
anyway).

As a result, it's now called "string_to_weight()".

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-01-09 09:30:18 +08:00
..
2013-11-29 12:11:12 -08:00
2013-12-04 15:49:55 -08:00
2013-12-26 08:42:20 -08:00
2013-12-20 09:53:04 -08:00
2013-10-15 04:37:31 -07:00
2013-11-30 12:01:32 -08:00