summaryrefslogtreecommitdiffstats
path: root/include/video
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2017-04-11 20:08:34 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-04-21 14:30:44 +0200
commited067d4a859ff696373324c5061392e013a7561a (patch)
treead38c59cb06b548f56d1bbc38845a39b9091a056 /include/video
parentcrypto: caam - fix error return code in caam_qi_init() (diff)
downloadlinux-ed067d4a859ff696373324c5061392e013a7561a.tar.xz
linux-ed067d4a859ff696373324c5061392e013a7561a.zip
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 <krzk@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/video')
-rw-r--r--include/video/udlfb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/video/udlfb.h b/include/video/udlfb.h
index f9466fa54ba4..3ea90aea5617 100644
--- a/include/video/udlfb.h
+++ b/include/video/udlfb.h
@@ -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