media: dvb-frontends/dvb-pll: Remove usage of the deprecated ida_simple_xx() API
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 11 Jan 2024 21:33:44 +0000 (22:33 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 7 Feb 2024 04:54:08 +0000 (05:54 +0100)
commit2350d4d4c819cccbc8a1b636c8b069fdf059685e
treec59cf90aa900f11ef41a2d9c377462fb2c9163cd
parentb1d47b27110438282f0b56738628347d9b915f53
media: dvb-frontends/dvb-pll: 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_max() is inclusive. So a -1 has been added when needed.

Link: https://lore.kernel.org/linux-media/920639b9e05775eea56ecb9cd5ed38ad292a96a8.1705008803.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/dvb-frontends/dvb-pll.c