diff options
| author | Andy Shevchenko <[email protected]> | 2025-03-17 18:11:10 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-03-22 05:10:04 +0000 |
| commit | 8ee065a6fdd285387d0eca5e1139ffb182a6e626 (patch) | |
| tree | d38b3eaa01e7a95d25ac23b08f8fd7494b7af7bc /samples/rust/rust_driver_pci.rs | |
| parent | samples: add hung_task detector mutex blocking sample (diff) | |
| download | kernel-8ee065a6fdd285387d0eca5e1139ffb182a6e626.tar.gz kernel-8ee065a6fdd285387d0eca5e1139ffb182a6e626.zip | |
resource: split DEFINE_RES_NAMED_DESC() out of DEFINE_RES_NAMED()
Patch series "resource: Split and use DEFINE_RES*() macros", v2.
Replace open coded variants of DEFINE_RES*() macros.
Note, there are many more possibilities over the kernel and even in
reources.c, however the latter contains not so trivial leftovers. That's
why the examples cover only straightforward conversions.
This patch (of 4):
In some cases it would be useful to supply predefined descriptor of the
resource. For this, introduce DEFINE_RES_NAMED_DESC() macro.
While at it, provide DEFINE_RES() that takes only start, size,
and flags.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Andy Shevchenko <[email protected]>
Cc: Ilpo Järvinen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'samples/rust/rust_driver_pci.rs')
0 files changed, 0 insertions, 0 deletions
