Permalink
Browse files

coding style cleanups for .h files.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information...
1 parent 4f60489 commit 93aa80bfbd35d0ff27704a173ecba5d8463ff183 @gregkh committed Sep 28, 2009
Showing with 11 additions and 12 deletions.
  1. +9 −11 list.h
  2. +2 −1 names.h
View
20 list.h
@@ -30,9 +30,9 @@ struct list_head {
* This is only for internal list manipulation where we know
* the prev/next entries already!
*/
-static __inline__ void __list_add(struct list_head *new,
- struct list_head *prev,
- struct list_head *next)
+static inline void __list_add(struct list_head *new,
+ struct list_head *prev,
+ struct list_head *next)
{
next->prev = new;
new->next = next;
@@ -43,16 +43,15 @@ static __inline__ void __list_add(struct list_head *new,
/*
* Insert a new entry after the specified head..
*/
-static __inline__ void list_add(struct list_head *new, struct list_head *head)
+static inline void list_add(struct list_head *new, struct list_head *head)
{
__list_add(new, head, head->next);
}
/*
* Insert a new entry before the specified head..
*/
-static __inline__ void list_add_tail(struct list_head *new,
- struct list_head *head)
+static inline void list_add_tail(struct list_head *new, struct list_head *head)
{
__list_add(new, head->prev, head);
}
@@ -64,27 +63,26 @@ static __inline__ void list_add_tail(struct list_head *new,
* This is only for internal list manipulation where we know
* the prev/next entries already!
*/
-static __inline__ void __list_del(struct list_head *prev,
- struct list_head *next)
+static inline void __list_del(struct list_head *prev, struct list_head *next)
{
next->prev = prev;
prev->next = next;
}
-static __inline__ void list_del(struct list_head *entry)
+static inline void list_del(struct list_head *entry)
{
__list_del(entry->prev, entry->next);
}
-static __inline__ int list_empty(struct list_head *head)
+static inline int list_empty(struct list_head *head)
{
return head->next == head;
}
/*
* Splice in "list" into "head"
*/
-static __inline__ void list_splice(struct list_head *list,
+static inline void list_splice(struct list_head *list,
struct list_head *head)
{
struct list_head *first = list->next;
View
@@ -35,7 +35,8 @@ extern const char *names_vendor(u_int16_t vendorid);
extern const char *names_product(u_int16_t vendorid, u_int16_t productid);
extern const char *names_class(u_int8_t classid);
extern const char *names_subclass(u_int8_t classid, u_int8_t subclassid);
-extern const char *names_protocol(u_int8_t classid, u_int8_t subclassid, u_int8_t protocolid);
+extern const char *names_protocol(u_int8_t classid, u_int8_t subclassid,
+ u_int8_t protocolid);
extern const char *names_audioterminal(u_int16_t termt);
extern const char *names_videoterminal(u_int16_t termt);
extern const char *names_hid(u_int8_t hidd);

0 comments on commit 93aa80b

Please sign in to comment.