media: platform: Change the fixed device node number to unfixed value
authorXia Jiang <xia.jiang@mediatek.com>
Fri, 14 Aug 2020 07:11:37 +0000 (09:11 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 28 Aug 2020 13:18:56 +0000 (15:18 +0200)
commitcc5fd1668f5fdddce4f367ec10514674a01fe09c
tree950d2a7a90c1ebddc333f0aae3b78a4476415128
parent6869a2de456a588a3c6b7bf123306faa3d490417
media: platform: Change the fixed device node number to unfixed value

The driver can be instantiated multiple times, e.g. for a decoder and
an encoder. Moreover, other drivers could coexist on the same system.
This makes the static video node number assignment pointless, so switch
to automatic assignment instead.

Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Xia Jiang <xia.jiang@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c