drivers: bcm2835_isp: Allow multiple users for the ISP driver.
authorNaushir Patuck <naush@raspberrypi.com>
Tue, 16 Nov 2021 12:38:44 +0000 (12:38 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:14 +0000 (11:33 +0000)
commit2eba915e553d7d3aed12ee4beeb4d2ee35d37d5d
tree32343a1e415c1583f0fecf0ba6a8dec04284c40d
parent9d25a62c78361de0a602faafa8ab9e603b3d96ff
drivers: bcm2835_isp: Allow multiple users for the ISP driver.

Add a second (identical) set of device nodes to allow concurrent use of the ISP
hardware by another user. This change effectively creates a second state
structure (struct bcm2835_isp_dev) to maintain independent state for the second
user. Node and media entity names are appened with the instance index
appropriately.

Further users can be added by changing the BCM2835_ISP_NUM_INSTANCES define.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
drivers/staging/vc04_services/bcm2835-isp/bcm2835-v4l2-isp.c