From: Fabio Estevam Date: Fri, 1 Jun 2012 00:10:30 +0000 (-0300) Subject: regmap: Fix the size calculation for map->format.buf_size X-Git-Tag: v3.5-rc3~32^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5494a98f451d59f6c05f3f688510e0832445f661;p=pandora-kernel.git regmap: Fix the size calculation for map->format.buf_size The word to be transmitted/received via regmap is composed by the following parts: config->reg_bits config->val_bits config->pad_bits ,so the total size should be calculated by summing up the number of bits of each element and using a DIV_ROUND_UP to return the number of bytes. Signed-off-by: Fabio Estevam Signed-off-by: Mark Brown --- Reading git-diff-tree failed