thunderbolt: Remove usage of the deprecated ida_simple_xx() API
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 11 Jan 2024 21:10:21 +0000 (22:10 +0100)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 23 Jan 2024 11:30:20 +0000 (13:30 +0200)
commitdec6a613574cd3dea799170b7aaa8fd76e22f176
tree73ebd81ca53a726d653daf94d1fe614aa8ee7344
parente8f1297ba31f9a36969c98e41663c508b8fd7fdf
thunderbolt: Remove usage of the deprecated ida_simple_xx() API

ida_alloc() and ida_free() should be preferred to the deprecated
ida_simple_get() and ida_simple_remove().

Note that the upper limit of ida_simple_get() is exclusive, but the one of
ida_alloc_range()/ida_alloc_max() is inclusive. So a -1 has been added
when needed.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/domain.c
drivers/thunderbolt/nhi.c
drivers/thunderbolt/nvm.c
drivers/thunderbolt/switch.c
drivers/thunderbolt/xdomain.c