regmap: Properly round reg_bytes and val_bytes
authorWolfram Sang <w.sang@pengutronix.de>
Sat, 28 Jan 2012 01:16:41 +0000 (02:16 +0100)
committerDan Willemsen <dwillemsen@nvidia.com>
Wed, 21 Mar 2012 05:31:34 +0000 (22:31 -0700)
commita450745b35262cbd6f9f047ac52efe0f978c3b5f
treede4d7e36e292d0deeb490ea154ac8fb159239e14
parentc6b74139bbeaa6092a7d90f164c51b0a578ebc51
regmap: Properly round reg_bytes and val_bytes

For the upcoming 2/6-format, we don't see debugfs output otherwise,
since the current division results in 0. I'd think 10/14 is broken
currently, too.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit c212acccc368a087a53559aac2b7d3be941b1252)

Change-Id: I2d8d1683f1649697ad73aa7544a3ac994931e237
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/87583

Rebase-Id: Rc45cc9dcded3f9510f70da9b26ed6c98042bb7cd
drivers/base/regmap/regmap.c