[PATCH 1/5] staging: et131x: et1310_address_map.h checkpatch fixes

Alan Cox alan at lxorguk.ukuu.org.uk
Sun Jun 5 19:14:26 UTC 2011


> +union RXMAC_WOL_SA_LO_t {
>  	u32 value;
>  	struct {
>  #ifdef _BIT_FIELDS_HTOL
> @@ -716,13 +716,13 @@ typedef union _RXMAC_WOL_SA_LO_t {
>  		u32 sa3:8;	/* bits 24-31 */

Pleease don't do it this way. If you look at the code we've been
systematically working through the unions turning them into definitions
in comments and sometimes bitmasks because almost none of the bit field
stuff is useful in these things anyway. Removing the typedefs without
doing it just muddles up what has and hasn't been done.

In fact in many cases the .value bit is the only bit used

Please keep to that style of describing the bits and knocking out fields
where it doesn't make sense.






More information about the devel mailing list