]> asedeno.scripts.mit.edu Git - linux.git/commit
uio: uio_pdrv_genirq: Make UIO name controllable via DT node property
authorDaniel Mack <daniel@zonque.org>
Thu, 15 Aug 2019 21:28:06 +0000 (23:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 11:42:43 +0000 (13:42 +0200)
commitb0297622a9726b929ed9f73eaa7605fd6a55df20
treee15f62a2a0a0908202bbb9aeeecd67ade701dbe2
parent13c1d4b30e52e8d79b0e01ae3894cf8399572e1d
uio: uio_pdrv_genirq: Make UIO name controllable via DT node property

When probed via DT, the uio_pdrv_genirq driver currently uses the name
of the node and exposes that as name of the UIO device to userspace.

This doesn't work for systems where multiple nodes with the same name
(but different unit addresses) are present, or for systems where the
node names are auto-generated by a third-party tool.

This patch adds the possibility to read the UIO name from the optional
"linux,uio-name" property.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Link: https://lore.kernel.org/r/20190815212807.25058-1-daniel@zonque.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_pdrv_genirq.c