From df9a207f8e1c4e5c3db00443d7a0f5f71caffeb0 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 6 Jul 2013 09:10:01 -0400 Subject: [PATCH] all: add xxx_to_cpu macros as well. --- backend_common.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend_common.c b/backend_common.c index ea59d5b..c7b2eec 100644 --- a/backend_common.c +++ b/backend_common.c @@ -62,6 +62,11 @@ #define be16_to_cpu(__x) __x #endif +#define cpu_to_le16 le16_to_cpu +#define cpu_to_le32 le32_to_cpu +#define cpu_to_be16 be16_to_cpu +#define cpu_to_be32 be32_to_cpu + #define ID_BUF_SIZE 2048 static char *get_device_id(struct libusb_device_handle *dev) {