mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
linux/kernel.h: Add ALIGN_DOWN macro
Few parts of kernel define their own macro for aligning down so provide a common define for this, with the same usage and assumptions as existing ALIGN. Convert also three existing implementations to this one. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
7e207d8550
commit
ed067d4a85
4 changed files with 3 additions and 4 deletions
|
|
@ -92,6 +92,6 @@ struct dlfb_data {
|
|||
|
||||
/* remove these once align.h patch is taken into kernel */
|
||||
#define DL_ALIGN_UP(x, a) ALIGN(x, a)
|
||||
#define DL_ALIGN_DOWN(x, a) ALIGN(x-(a-1), a)
|
||||
#define DL_ALIGN_DOWN(x, a) ALIGN_DOWN(x, a)
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue