media: atomisp: Set asd.subdev.devnode once from isp_subdev_init_entities()
authorHans de Goede <hdegoede@redhat.com>
Tue, 9 May 2023 20:10:34 +0000 (21:10 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 9 Jun 2023 13:54:54 +0000 (14:54 +0100)
commit250781c5a2e6a0335b85f2342415fe6f1180c6e0
tree4ebe12e9038b9e2ace1235b77686ea43a0efa368
parentae39964d2c01cb1805fcaa6f0ad0b7b4e8568106
media: atomisp: Set asd.subdev.devnode once from isp_subdev_init_entities()

Now that we have only one /dev/video# node we can set asd.subdev.devnode
once from isp_subdev_init_entities(), replacing the hack to set it the
last opened/closed /dev/video# node from atomisp_open() /
atomisp_release().

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_fops.c
drivers/staging/media/atomisp/pci/atomisp_subdev.c