This source file includes following definitions.
- hsi_register_board_info
1
2
3
4
5
6
7
8
9 #include <linux/hsi/hsi.h>
10 #include <linux/list.h>
11 #include <linux/slab.h>
12 #include "hsi_core.h"
13
14
15
16
17
18 LIST_HEAD(hsi_board_list);
19 EXPORT_SYMBOL_GPL(hsi_board_list);
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 int __init hsi_register_board_info(struct hsi_board_info const *info,
35 unsigned int len)
36 {
37 struct hsi_cl_info *cl_info;
38
39 cl_info = kcalloc(len, sizeof(*cl_info), GFP_KERNEL);
40 if (!cl_info)
41 return -ENOMEM;
42
43 for (; len; len--, info++, cl_info++) {
44 cl_info->info = *info;
45 list_add_tail(&cl_info->list, &hsi_board_list);
46 }
47
48 return 0;
49 }