forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit1eb51d6
nvmem: switch to simpler IDA interface
We don't need to specify any ranges when allocating IDs so we can switchto ida_alloc() and ida_free() instead of the ida_simple_ counterparts.ida_simple_get(ida, 0, 0, gfp) is equivalent toida_alloc_range(ida, 0, UINT_MAX, gfp) which is equivalent toida_alloc(ida, gfp). Note: IDR will never actually allocate an IDlarger than INT_MAX.Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>Link:https://lore.kernel.org/r/20200917134437.16637-4-srinivas.kandagatla@linaro.orgSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent28371cc commit1eb51d6
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
| 599 | + | |
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | | - | |
| 611 | + | |
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| |||
0 commit comments
Comments
(0)