]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Use enums for related constants
authorSven Eckelmann <sven@narfation.org>
Sat, 4 Jun 2011 09:26:00 +0000 (11:26 +0200)
committerSven Eckelmann <sven@narfation.org>
Thu, 9 Jun 2011 18:40:38 +0000 (20:40 +0200)
commit27e5677910cf24605554b4016236c713b266af91
treebf2c84c423ebdfba4b88afad1fcb7d9a96070902
parent24928be12406ec1ee94e396684630cc575db1ebd
batman-adv: Use enums for related constants

CodingStyle "Chapter 12: Macros, Enums and RTL" recommends to use enums
for several related constants. Internal states can be used without
defining the actual value, but all values which are visible to the
outside must be defined as before. Normal values are assigned as usual
and flags are defined by shifts of a bit.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/hard-interface.h
net/batman-adv/main.h
net/batman-adv/packet.h