Commit 5da3d94
PCI: mvebu: Use for_each_of_range() iterator for parsing "ranges"
The mvebu "ranges" is a bit unusual with its own encoding of addresses,
but it's still just normal "ranges" as far as parsing is concerned.
Convert mvebu_get_tgt_attr() to use the for_each_of_range() iterator
instead of open coding the parsing.
Signed-off-by: Rob Herring (Arm) <[email protected]>
Signed-off-by: Manivannan Sadhasivam <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Link: https://patch.msgid.link/[email protected]1 parent 0af2f6b commit 5da3d94
1 file changed
+9
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1179 | 1179 | | |
1180 | 1180 | | |
1181 | 1181 | | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
| 1182 | + | |
| 1183 | + | |
1185 | 1184 | | |
1186 | 1185 | | |
1187 | 1186 | | |
1188 | 1187 | | |
1189 | | - | |
1190 | | - | |
| 1188 | + | |
1191 | 1189 | | |
1192 | 1190 | | |
1193 | | - | |
1194 | | - | |
1195 | | - | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
| 1191 | + | |
1201 | 1192 | | |
| 1193 | + | |
1202 | 1194 | | |
1203 | | - | |
| 1195 | + | |
1204 | 1196 | | |
1205 | | - | |
| 1197 | + | |
1206 | 1198 | | |
1207 | 1199 | | |
1208 | 1200 | | |
1209 | 1201 | | |
1210 | 1202 | | |
1211 | | - | |
1212 | | - | |
| 1203 | + | |
| 1204 | + | |
1213 | 1205 | | |
1214 | 1206 | | |
1215 | 1207 | | |
| |||
0 commit comments