]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: axis-fifo: use unique identifiers in device names
authorOvidiu Panait <ovidiu.panait.oss@gmail.com>
Mon, 11 Aug 2025 08:54:17 +0000 (11:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Aug 2025 14:25:08 +0000 (16:25 +0200)
commite5b264e0a201254a38836b794ff362e8400f3df7
treeec36dac77b839361b2d9710cc23e962673c190d1
parent6e5187d82d9b20eb72938deda625a1976148241c
staging: axis-fifo: use unique identifiers in device names

Axis-fifo devices use physical addresses in their name, for example
'axis_fifo_0x43c00000'. This is generally frowned upon and it does not
follow the usual naming scheme that uses unique identifiers.

Therefore, use ida_alloc()/ida_free() to implement unique identifiers
for axis-fifo device names (i.e. axis_fifo0, axis_fifo1, etc.).

Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
Link: https://lore.kernel.org/r/20250811085417.2641674-2-ovidiu.panait.oss@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/axis-fifo/axis-fifo.c