mei: Avoid the use of one-element arrays
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 14 Jul 2020 21:45:16 +0000 (16:45 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2020 07:27:10 +0000 (09:27 +0200)
commit3c3b7ddef7879abb2c42422e898145826c79e5f0
tree42faaed8f1c3b8d50a916427a3b0a066c53c5b41
parent74b04fae4501f2b0424b01f0295bf26c5c8fce5a
mei: Avoid the use of one-element arrays

One-element arrays are being deprecated[1]. Replace the one-element
arrays with a simple value type u8 reserved, once this is just a
placeholder for alignment.

Also, while there, use the preferred form for passing a size of a struct.
The alternative form where struct name is spelled out hurts readability
and introduces an opportunity for a bug when the variable type is changed
but the corresponding sizeof that is passed as argument is not.

[1] https://github.com/KSPP/linux/issues/79

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20200714214516.GA1040@embeddedor
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/hbm.c
drivers/misc/mei/hw.h