summaryrefslogtreecommitdiff
path: root/drivers/vhost
diff options
context:
space:
mode:
authorIdo Yariv <ido@wizery.com>2011-05-02 12:42:39 +0800
committerAndy Green <andy.green@linaro.org>2011-05-02 12:42:39 +0800
commit3e9d84cae5c31b45e6754f9602bf8c711fa3a183 (patch)
tree5934410756ed1d1020d11245693d3f07403a6baf /drivers/vhost
parentc15cabc1589a3676e5daae32a0e6e1fc7b63eadf (diff)
wl12xx: Clean up the block size alignment code
Simplify and clean up the block size alignment code: 1. Set the block size according to the padding field type, as it cannot exceed the maximum value this field can hold. 2. Move the alignment code into a function instead of duplicating it in multiple places. 3. In the current implementation, the block_size member can be misleading because a zero value actually means that there's no need to align. Declare a block size alignment quirk instead. Signed-off-by: Ido Yariv <ido@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/vhost')
0 files changed, 0 insertions, 0 deletions