]> git.baikalelectronics.ru Git - arm-tf.git/commit
emmc/sd: for C99 compliance, changed the unsigned char/short bitfield to unsigned...
authorQixiang.Xu <geesun@gmail.com>
Thu, 17 Nov 2016 03:58:18 +0000 (11:58 +0800)
committerQixiang.Xu <geesun@gmail.com>
Thu, 1 Dec 2016 14:43:21 +0000 (22:43 +0800)
commit80d4d7483fcfdefa0f62e66f9cc7fc18b59c24bb
tree059fc32d88b8978afa1ea78c479b0a6b5f1be419
parentbc8f9b84349ea2d262481d4cdfdbe4a3f1d69959
emmc/sd: for C99 compliance, changed the unsigned char/short bitfield to unsigned int bitfields

C99 restricts bitfields type is signed and unsigned integer or _Bool.
See section 6.7.2.1 Structure and union specifiers.
"A bit-field shall have a type that is a qualified or unqualified version
 of _Bool, signed int, unsigned int, or some other implementation-defined type."

Since the compiler packs bitfields anyways, actual data layout in the structure is unaffected.

Signed-off-by: Alex Nemirovsky <alex.nemirovsky@cortina-access.com>
include/drivers/emmc.h