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:
parent
9aa7aa8f08
commit
b5eb8b90fe
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue