Home
last modified time | relevance | path

Searched hist:c9689ca3182b89f1051b11eac2296a627abd4d31 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/include/
H A Dcommon.hc9689ca3182b89f1051b11eac2296a627abd4d31 Tue Jun 23 21:38:31 UTC 2015 Simon Glass <sjg@chromium.org> Add a way of checking the position of a structure member

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
hardware.

This implementation uses Static_assert() since BUILD_BUG_ON() only works
within functions.

Signed-off-by: Simon Glass <sjg@chromium.org>