• Simon Glass's avatar
    Add a way of checking the position of a structure member · c9689ca3
    Simon Glass authored
    U-Boot uses structures for hardware access so it is important that these
    structures are correct. Add a way of asserting that a structure member is
    at a particular offset. This can be created using the datasheet for the
    This implementation uses Static_assert() since BUILD_BUG_ON() only works
    within functions.
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>