Repository navigation
Commit 9509376
regmap: use less #ifdef for LOG_DEVICE
Move the checking of the LOG_DEVICE into a function to reduce the
number of #ifdefs and ensure more of the code gets compiled/checked,
and make it easier to change this for internal debugging purposes
(such as checking >1 device).
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 5b394b2 commit 9509376
1 file changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
| |||
1755 | 1765 | | |
1756 | 1766 | | |
1757 | 1767 | | |
1758 | | - | |
1759 | | - | |
| 1768 | + | |
1760 | 1769 | | |
1761 | | - | |
1762 | 1770 | | |
1763 | 1771 | | |
1764 | 1772 | | |
| |||
2450 | 2458 | | |
2451 | 2459 | | |
2452 | 2460 | | |
2453 | | - | |
2454 | | - | |
| 2461 | + | |
2455 | 2462 | | |
2456 | | - | |
2457 | 2463 | | |
2458 | 2464 | | |
2459 | 2465 | | |
| |||
0 commit comments