diff options
author | Wolfgang Denk <wd@denx.de> | 2008-03-27 00:03:57 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-03-27 00:03:57 +0100 |
commit | d049cc7f71c0d875e8f5099d1ed23666a82b8f8e (patch) | |
tree | d923e2129fb09121ce0c26a607346055a80016d4 /include/libata.h | |
parent | fd0b1fe3c388a77e8fe00cdd930ca317a91198d4 (diff) |
Coding style cleanup, update CHANGELOG
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'include/libata.h')
-rw-r--r-- | include/libata.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/libata.h b/include/libata.h index a5d1c4fac8b..aedba743e21 100644 --- a/include/libata.h +++ b/include/libata.h @@ -168,13 +168,13 @@ enum { #define ata_id_has_ncq(id) ((id)[76] & (1 << 8)) #define ata_id_queue_depth(id) (((id)[75] & 0x1f) + 1) -#define ata_id_u32(id,n) \ - (((u32) (id)[(n) + 1] << 16) | ((u32) (id)[(n)])) -#define ata_id_u64(id,n) \ - ( ((u64) (id)[(n) + 3] << 48) | \ - ((u64) (id)[(n) + 2] << 32) | \ - ((u64) (id)[(n) + 1] << 16) | \ - ((u64) (id)[(n) + 0]) ) +#define ata_id_u32(id,n) \ + (((u32) (id)[(n) + 1] << 16) | ((u32) (id)[(n)])) +#define ata_id_u64(id,n) \ + ( ((u64) (id)[(n) + 3] << 48) | \ + ((u64) (id)[(n) + 2] << 32) | \ + ((u64) (id)[(n) + 1] << 16) | \ + ((u64) (id)[(n) + 0]) ) static inline unsigned int ata_id_major_version(const u16 *id) |