]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mmci: Change struct members from bool to u8
authorLudovic Barre <ludovic.barre@st.com>
Tue, 2 Oct 2018 12:09:03 +0000 (14:09 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 8 Oct 2018 09:40:43 +0000 (11:40 +0200)
commit19a25d57ad39c7facc878d68feeb79867e037922
treebc1c01e902ffb41ff8aa382d4ac9b9c5ef082ae5
parentcdea194721929d025d40cfa6c2449d5c4cd366e6
mmc: mmci: Change struct members from bool to u8

Recent versions of checkpatch have a new warning based on a documented
preference of Linus to not use bool in structures due to wasted space and
the size of bool is implementation dependent.  For more information, see
the email thread at https://lkml.org/lkml/2017/11/21/384

fix checkpatch --strict issues:
-CHECK: Avoid using bool structure members because of possible alignment
 issues - see: https://lkml.org/lkml/2017/11/21/384
-WARNING: Avoid using bool as bitfield. Prefer bool bitfields as
 unsigned int or u<8|16|32>

Signed-off-by: Ludovic Barre <ludovic.barre@st.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmci.h