Commit 54e7770
of: overlay: Kobjectify overlay objects
We are going to need the overlays to appear on sysfs with runtime
global properties (like master enable) so turn them into kobjects.
They have to be in sysfs so that people can have information about the
overlays applied in the system, i.e. where their targets are and whether
removal is possible. In a future more attributes can be added
in a backwards compatible manner.
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
[geert: Rebase to v4.15-rc1]
[Fengguang Wu: Make overlay_changeset_release() static]
[geert: Rebase on top of commit 39a751a ("of: change overlay apply input data from unflattened to FDT") in v4.17-rc1]
[geert: Rebase on top of commit 421f4d1 ("of: overlay: do not free changeset when of_overlay_apply returns error") in v5.19-rc1]
[geert: Rebase on top of commit 73aca58 ("of: Move of_platform_register_reconfig_notifier() into DT core") in v6.6-rc1]
[geert: Add kerneldoc for fragment.kobj]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>1 parent 670154d commit 54e7770
3 files changed
+56
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
190 | 195 | | |
191 | 196 | | |
192 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
185 | 194 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| |||
868 | 871 | | |
869 | 872 | | |
870 | 873 | | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
871 | 885 | | |
872 | 886 | | |
873 | 887 | | |
| |||
887 | 901 | | |
888 | 902 | | |
889 | 903 | | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
890 | 910 | | |
891 | 911 | | |
892 | 912 | | |
| |||
1015 | 1035 | | |
1016 | 1036 | | |
1017 | 1037 | | |
| 1038 | + | |
| 1039 | + | |
1018 | 1040 | | |
1019 | 1041 | | |
1020 | 1042 | | |
| |||
1064 | 1086 | | |
1065 | 1087 | | |
1066 | 1088 | | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
1067 | 1099 | | |
1068 | 1100 | | |
1069 | 1101 | | |
| |||
1284 | 1316 | | |
1285 | 1317 | | |
1286 | 1318 | | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
0 commit comments