9
0
Fork 0

scripts: mxs: Use Kernel includes

Use the common definition of ARRAY_SIZE and roundup.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2016-02-02 09:38:36 +01:00
parent 9aa7aa8f08
commit b5eb8b90fe
1 changed files with 1 additions and 3 deletions

View File

@ -16,12 +16,10 @@
#include <getopt.h>
#include <stdint.h>
#include <arpa/inet.h>
#include <linux/kernel.h>
#define SB_BLOCK_SIZE 16
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
static char *prepfile;
static char *bootloaderfile;