Skip to content
  • Marek Vasut's avatar
    mxssb: Get rid of asm/byteorder.h header · b8efe5b2
    Marek Vasut authored
    
    
    This header is present only on Linux, so get rid of it. The problem
    is that we can no longer use __cpu_to_be16() function, which is Linux
    specific. This function can be replaced in a slightly hackish way by
    using the htons() call, as they do the same thing -- convert uint16_t
    from the host endianness to the network endianness (which is BE). The
    same goes the other way around, from __be16_to_cpu() is replaced by
    ntohs(), which is again a slight hack.
    
    Signed-off-by: default avatarMarek Vasut <marex@denx.de>
    b8efe5b2