aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2020-09-09 18:02:48 +0000
committerGreg Kroah-Hartman <[email protected]>2020-09-10 16:37:38 +0000
commit0de7511695680425aa1e6e1e1c7a7c24e6250491 (patch)
tree22c0074c5a21783cc06553302ea1e204cfc2e4be /drivers/usb/cdns3/cdns3-imx.c
parentdriver core: platform: Document return type of more functions (diff)
downloadkernel-0de7511695680425aa1e6e1e1c7a7c24e6250491.tar.gz
kernel-0de7511695680425aa1e6e1e1c7a7c24e6250491.zip
platform_device: 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]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions