summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers/video
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2022-03-18 14:13:29 +0100
committerJulius Werner <jwerner@chromium.org>2022-03-30 21:21:47 +0000
commit9760264a96b19e4cd35ad70d92c0db11a3813b67 (patch)
tree46ca10d9f49b8633ce8d09f5b682360b63af8d17 /payloads/libpayload/drivers/video
parent70f3d438546a62d116761bd84d5b517f3e627663 (diff)
commonlib/bsd/helpers: Remove redundancy with libpayload defines
Move STRINGIFY() from coreboot string.h to commonlib/bsd/helpers.h Remove redundant defines from libpayload.h and libpayloads' standard headers. Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Change-Id: I3263b2aa7657759207bf6ffda750d839e741f99c Reviewed-on: https://review.coreboot.org/c/coreboot/+/62921 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'payloads/libpayload/drivers/video')
-rw-r--r--payloads/libpayload/drivers/video/graphics.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/payloads/libpayload/drivers/video/graphics.c b/payloads/libpayload/drivers/video/graphics.c
index 7f08d40ea2..632a283de9 100644
--- a/payloads/libpayload/drivers/video/graphics.c
+++ b/payloads/libpayload/drivers/video/graphics.c
@@ -57,7 +57,6 @@ static const struct cb_framebuffer *fbinfo;
#define PIVOT_H_MASK (PIVOT_H_LEFT|PIVOT_H_CENTER|PIVOT_H_RIGHT)
#define PIVOT_V_MASK (PIVOT_V_TOP|PIVOT_V_CENTER|PIVOT_V_BOTTOM)
#define ROUNDUP(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
-#define ABS(x) ((x) < 0 ? -(x) : (x))
static char initialized = 0;