Repository navigation
Commit 96fb1b6
iio: core: move debugfs data on the private iio dev info
This change moves all iio_dev debugfs fields to the iio_dev_priv object.
It's not the biggest advantage yet (to the whole thing of abstractization)
but it's a start.
The iio_get_debugfs_dentry() function (which is moved in
industrialio-core.c) needs to also be guarded against the CONFIG_DEBUG_FS
symbol, when it isn't defined. We do want to keep the inline definition in
the iio.h header, so that the compiler can better infer when to compile out
debugfs code that is related to the IIO debugfs directory.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>1 parent 09673d5 commit 96fb1b6
3 files changed
Lines changed: 44 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
168 | 181 | | |
169 | 182 | | |
170 | 183 | | |
| |||
308 | 321 | | |
309 | 322 | | |
310 | 323 | | |
| 324 | + | |
311 | 325 | | |
312 | 326 | | |
313 | 327 | | |
314 | 328 | | |
315 | 329 | | |
316 | | - | |
317 | | - | |
| 330 | + | |
| 331 | + | |
318 | 332 | | |
319 | 333 | | |
320 | | - | |
| 334 | + | |
321 | 335 | | |
322 | 336 | | |
323 | 337 | | |
324 | 338 | | |
325 | 339 | | |
326 | 340 | | |
327 | | - | |
328 | | - | |
329 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
330 | 344 | | |
331 | 345 | | |
332 | | - | |
333 | | - | |
| 346 | + | |
| 347 | + | |
334 | 348 | | |
335 | 349 | | |
336 | 350 | | |
337 | 351 | | |
338 | 352 | | |
339 | 353 | | |
| 354 | + | |
340 | 355 | | |
341 | 356 | | |
342 | 357 | | |
| |||
351 | 366 | | |
352 | 367 | | |
353 | 368 | | |
354 | | - | |
| 369 | + | |
355 | 370 | | |
356 | 371 | | |
357 | | - | |
| 372 | + | |
358 | 373 | | |
359 | 374 | | |
360 | 375 | | |
| |||
378 | 393 | | |
379 | 394 | | |
380 | 395 | | |
381 | | - | |
| 396 | + | |
| 397 | + | |
382 | 398 | | |
383 | 399 | | |
384 | 400 | | |
385 | 401 | | |
| 402 | + | |
| 403 | + | |
386 | 404 | | |
387 | 405 | | |
388 | 406 | | |
389 | 407 | | |
390 | 408 | | |
391 | 409 | | |
392 | | - | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
393 | 413 | | |
394 | 414 | | |
395 | 415 | | |
396 | 416 | | |
397 | | - | |
| 417 | + | |
398 | 418 | | |
399 | 419 | | |
400 | 420 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
12 | 22 | | |
13 | 23 | | |
14 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
524 | | - | |
525 | 523 | | |
526 | 524 | | |
527 | 525 | | |
| |||
567 | 565 | | |
568 | 566 | | |
569 | 567 | | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | 568 | | |
577 | 569 | | |
578 | 570 | | |
| |||
733 | 725 | | |
734 | 726 | | |
735 | 727 | | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
| 728 | + | |
740 | 729 | | |
741 | 730 | | |
742 | 731 | | |
| |||
0 commit comments