mic: vop: Fix use-after-free on remove
[linux/fpc-iii.git] / drivers / of / unittest-data / tests-phandle.dtsi
blob6b33be4c4416ce7bd72d5639a5cfe4b03a79f082
1 // SPDX-License-Identifier: GPL-2.0
3 / {
4         aliases {
5                 testcase-alias = &testcase;
6         };
8         testcase: testcase-data {
9                 security-password = "password";
10                 duplicate-name = "duplicate";
11                 duplicate-name { };
12                 phandle-tests {
13                         provider0: provider0 {
14                                 #phandle-cells = <0>;
15                         };
17                         provider1: provider1 {
18                                 #phandle-cells = <1>;
19                         };
21                         provider2: provider2 {
22                                 #phandle-cells = <2>;
23                         };
25                         provider3: provider3 {
26                                 #phandle-cells = <3>;
27                         };
29                         provider4: provider4 {
30                                 #phandle-cells = <2>;
31                                 phandle-map = <0 1 &provider1 3>,
32                                               <4 0 &provider0>,
33                                               <16 5 &provider3 3 5 0>,
34                                               <200 8 &provider2 23 6>,
35                                               <19 0 &provider2 15 0>,
36                                               <2 3 &provider3 2 5 3>;
37                                 phandle-map-mask = <0xff 0xf>;
38                                 phandle-map-pass-thru = <0x0 0xf0>;
39                         };
41                         consumer-a {
42                                 phandle-list =  <&provider1 1>,
43                                                 <&provider2 2 0>,
44                                                 <0>,
45                                                 <&provider3 4 4 3>,
46                                                 <&provider2 5 100>,
47                                                 <&provider0>,
48                                                 <&provider1 7>;
49                                 phandle-list-names = "first", "second", "third";
51                                 phandle-list-bad-phandle = <12345678 0 0>;
52                                 phandle-list-bad-args = <&provider2 1 0>,
53                                                         <&provider3 0>;
54                                 empty-property;
55                                 string-property = "foobar";
56                                 unterminated-string = [40 41 42 43];
57                                 unterminated-string-list = "first", "second", [40 41 42 43];
58                         };
60                         consumer-b {
61                                 phandle-list =  <&provider1 1>,
62                                                 <&provider4 2 3>,
63                                                 <0>,
64                                                 <&provider4 4 0x100>,
65                                                 <&provider4 0 0x61>,
66                                                 <&provider0>,
67                                                 <&provider4 19 0x20>;
68                                 phandle-list-bad-phandle = <12345678 0 0>;
69                                 phandle-list-bad-args = <&provider2 1 0>,
70                                                         <&provider4 0>;
71                         };
72                 };
73         };