aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/list.h
diff options
context:
space:
mode:
authorAndrey Utkin <andrey.krieger.utkin@gmail.com>2014-11-13 20:09:55 -0500
committerJiri Kosina <jkosina@suse.cz>2014-11-20 08:45:15 -0500
commit3943f42c11896ce82ad3da132c8a5630313bdd0e (patch)
treea3de044ace5139fbf3517c3e344e26b4853cf5a5 /scripts/kconfig/list.h
parenta02001086bbfb4da35d1228bebc2f1b442db455f (diff)
Replace mentions of "list_struct" to "list_head"
There's no such thing as "list_struct". Signed-off-by: Andrey Utkin <andrey.krieger.utkin@gmail.com> Acked-by: Steven Rostedt <rostedt@goodmis.org> Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'scripts/kconfig/list.h')
-rw-r--r--scripts/kconfig/list.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/kconfig/list.h b/scripts/kconfig/list.h
index 685d80e1bb0e..2cf23f002d3f 100644
--- a/scripts/kconfig/list.h
+++ b/scripts/kconfig/list.h
@@ -34,7 +34,7 @@ struct list_head {
34 * list_entry - get the struct for this entry 34 * list_entry - get the struct for this entry
35 * @ptr: the &struct list_head pointer. 35 * @ptr: the &struct list_head pointer.
36 * @type: the type of the struct this is embedded in. 36 * @type: the type of the struct this is embedded in.
37 * @member: the name of the list_struct within the struct. 37 * @member: the name of the list_head within the struct.
38 */ 38 */
39#define list_entry(ptr, type, member) \ 39#define list_entry(ptr, type, member) \
40 container_of(ptr, type, member) 40 container_of(ptr, type, member)
@@ -43,7 +43,7 @@ struct list_head {
43 * list_for_each_entry - iterate over list of given type 43 * list_for_each_entry - iterate over list of given type
44 * @pos: the type * to use as a loop cursor. 44 * @pos: the type * to use as a loop cursor.
45 * @head: the head for your list. 45 * @head: the head for your list.
46 * @member: the name of the list_struct within the struct. 46 * @member: the name of the list_head within the struct.
47 */ 47 */
48#define list_for_each_entry(pos, head, member) \ 48#define list_for_each_entry(pos, head, member) \
49 for (pos = list_entry((head)->next, typeof(*pos), member); \ 49 for (pos = list_entry((head)->next, typeof(*pos), member); \
@@ -55,7 +55,7 @@ struct list_head {
55 * @pos: the type * to use as a loop cursor. 55 * @pos: the type * to use as a loop cursor.
56 * @n: another type * to use as temporary storage 56 * @n: another type * to use as temporary storage
57 * @head: the head for your list. 57 * @head: the head for your list.
58 * @member: the name of the list_struct within the struct. 58 * @member: the name of the list_head within the struct.
59 */ 59 */
60#define list_for_each_entry_safe(pos, n, head, member) \ 60#define list_for_each_entry_safe(pos, n, head, member) \
61 for (pos = list_entry((head)->next, typeof(*pos), member), \ 61 for (pos = list_entry((head)->next, typeof(*pos), member), \