diff options
| author | Bartosz Golaszewski <[email protected]> | 2020-09-17 14:44:36 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-09-17 18:48:23 +0200 |
| commit | 1eb51d6a4fce66e7c4428b5761b75b357931422a (patch) | |
| tree | 6292fbd6068bdf5388404f0e2cf664541bb8542e /tools/perf/scripts/python/bin | |
| parent | 28371cc610962479bd4cb1b4b088081a23ac2e71 (diff) | |
nvmem: switch to simpler IDA interface
We don't need to specify any ranges when allocating IDs so we can switch
to ida_alloc() and ida_free() instead of the ida_simple_ counterparts.
ida_simple_get(ida, 0, 0, gfp) is equivalent to
ida_alloc_range(ida, 0, UINT_MAX, gfp) which is equivalent to
ida_alloc(ida, gfp). Note: IDR will never actually allocate an ID
larger than INT_MAX.
Signed-off-by: Bartosz Golaszewski <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions