mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
media: pisp_be: Re-introduce video node offset
Offset the backend dev-nodes starting at /dev/video20 onwards to maintain backward compatibility with the pre-upstreamed kernel driver. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
This commit is contained in:
committed by
Dom Cobley
parent
8c47c82918
commit
ba621aa9a5
@@ -23,6 +23,9 @@
|
||||
|
||||
#include "pisp_be_formats.h"
|
||||
|
||||
/* Offset to use when registering the /dev/videoX node */
|
||||
#define PISPBE_VIDEO_NODE_OFFSET 20
|
||||
|
||||
/* Maximum number of config buffers possible */
|
||||
#define PISP_BE_NUM_CONFIG_BUFFERS VB2_MAX_FRAME
|
||||
|
||||
@@ -1446,7 +1449,8 @@ static int pispbe_init_node(struct pispbe_dev *pispbe, unsigned int id)
|
||||
goto err_unregister_queue;
|
||||
}
|
||||
|
||||
ret = video_register_device(vdev, VFL_TYPE_VIDEO, -1);
|
||||
ret = video_register_device(vdev, VFL_TYPE_VIDEO,
|
||||
PISPBE_VIDEO_NODE_OFFSET);
|
||||
if (ret) {
|
||||
dev_err(pispbe->dev,
|
||||
"Failed to register video %s device node\n",
|
||||
|
||||
Reference in New Issue
Block a user