OSDN Git Service

staging/vc04_services/bcm2835-camera: distinct numeration and names for devices
authorMichael Kupfer <michael.kupfer@fau.de>
Fri, 6 Dec 2019 08:54:32 +0000 (09:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2019 09:38:35 +0000 (10:38 +0100)
commit1f8a6edf8d2f9be4127b2ceb7c6c9cb7a82cc5b8
treee265dd970d3dab5751038c7630294def6cba2279
parenta1df271a8652723786923f8314c07ac1e8a35e2f
staging/vc04_services/bcm2835-camera: distinct numeration and names for devices

Create a static atomic counter for numerating cameras.
Use the Media Subsystem Kernel Internal API to create distinct
device-names, so that the camera-number (given by the counter)
matches the camera-name.

Co-developed-by: Kay Friedrich <kay.friedrich@fau.de>
Signed-off-by: Kay Friedrich <kay.friedrich@fau.de>
Signed-off-by: Michael Kupfer <michael.kupfer@fau.de>
Link: https://lore.kernel.org/r/20191206085432.19962-1-michael.kupfer@fau.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c