]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: solo6x10: Replace expressions that don't use ALIGN macro
authorAndreea-Cristina Bernat <bernat.ada@gmail.com>
Mon, 17 Mar 2014 01:00:01 +0000 (18:00 -0700)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Mon, 17 Mar 2014 01:00:56 +0000 (18:00 -0700)
commitada9659ffb59932fd66b090144459a7eb0e04795
tree39720e49407223ad9fcdd6503ece19bdb62bd873
parent5d8206ba52d505f4f97293541513e3c8387b2a40
Staging: solo6x10: Replace expressions that don't use ALIGN macro

There are some expressions that compute the roundup of a number, but don't use
the existing macro defined in /include/kernel.h. This patch uses the following
Coccinelle semantic patch:
@ haskernel @
@@

@ depends on haskernel @
expression E1, E2;
@@

- (E1 + (E2 - 1)) & ~(E2 - 1)
+ ALIGN(E1, E2)

Signed-off-by: Andreea-Cristina Bernat <bernat.ada@gmail.com>
Acked-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/staging/media/solo6x10/solo6x10-v4l2-enc.c