utils: use constant byte-order conversion
authorFelix Fietkau <nbd@nbd.name>
Wed, 21 Mar 2018 16:53:40 +0000 (17:53 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 21 Mar 2018 16:55:57 +0000 (17:55 +0100)
commiteebe3fcd2a5728264faa5ae72bbc38d7bb704c8e
tree5744dd9283ad473b57ceffb849d405df1d9bc2d5
parent3aad2948ebceef7865a5cf749522bed9e332de05
utils: use constant byte-order conversion

Simplifies portability and ensures that cpu_to_* can be used in const
declarations. If the architecture has special instructions, the compiler
should be able to detect the pattern and use them.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
utils.h