This repository was archived by the owner on Oct 5, 2018. It is now read-only.
Commit 8623185
wlcore: Add support for DT platform data
When running with DT, we no longer have a board file that can set up the
platform data for wlcore. Allow this data to be passed from DT.
Since some platforms use a gpio-irq, add support for passing either the
irq number or the gpio number. For the latter case, the driver will
request the gpio and convert it to the irq number. If an irq is
specified, it'll be used as is.
[Arik - the pdev_data pointer does not belong to us and is freed when
the device is released. Dereference to our private data first.]
Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Matt Porter <mporter@linaro.org>
[rebased on 3.18-rc4]1 parent 82ea179 commit 8623185
2 files changed
+66
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
217 | 273 | | |
218 | 274 | | |
219 | 275 | | |
| |||
245 | 301 | | |
246 | 302 | | |
247 | 303 | | |
248 | | - | |
| 304 | + | |
249 | 305 | | |
250 | 306 | | |
251 | 307 | | |
| |||
279 | 335 | | |
280 | 336 | | |
281 | 337 | | |
282 | | - | |
| 338 | + | |
283 | 339 | | |
284 | 340 | | |
285 | 341 | | |
| |||
313 | 369 | | |
314 | 370 | | |
315 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
316 | 375 | | |
317 | 376 | | |
318 | 377 | | |
| |||
323 | 382 | | |
324 | 383 | | |
325 | 384 | | |
| 385 | + | |
| 386 | + | |
326 | 387 | | |
327 | 388 | | |
328 | 389 | | |
329 | 390 | | |
330 | 391 | | |
| 392 | + | |
331 | 393 | | |
332 | 394 | | |
333 | 395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
0 commit comments