|
From: Peter K. <pk...@us...> - 2001-10-16 14:57:22
|
The following file was modified in linux/include/linux/bluetooth: Name Old version New version Comment ---- ----------- ----------- ------- btcommon.h 1.87 1.88=20=20=20=20=20=20=20=20=20=20=20=20 The accompanying log: Moved definitions of le16_to_cpuu() and le32_to_cpuu() macros to btcommon.h The diff of the modified file(s): --- btcommon.h 2001/10/10 15:00:42 1.87 +++ btcommon.h 2001/10/16 14:57:10 1.88 @@ -94,6 +94,12 @@ =20 /* extract line number from tty */ #define GET_TTYLINE(tty) (MINOR(tty->device) - tty->driver.minor_start) + +/* These two macros are the same as le16_to_cpup() and le32_to_cpup() + only that they work with unaligned addresses */ +#define le16_to_cpuu(addr) (le16_to_cpu(get_unaligned((u16 *)addr))) +#define le32_to_cpuu(addr) (le32_to_cpu(get_unaligned((u32 *)addr))) + /****************** Defines realted to the bluetooth implementation ******= ***/ =20 #define SERIAL_PORT_PROFILE 0 |