]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l: i2c: Add a comment not to use static sub-device names in the future
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 24 Sep 2018 14:24:43 +0000 (10:24 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 3 Oct 2018 15:55:44 +0000 (11:55 -0400)
commitc871e5e88f61eb5e9481198b9ded9c6deefa539e
treea1e6e53992bfc878dd8ba2ff34743a18082f90f9
parent1431c0b708fdd65d16f8e17c94bcfb1d67397b9a
media: v4l: i2c: Add a comment not to use static sub-device names in the future

A number of sub-device drivers used a static name for the sub-device, and
thus the media entity. As the entity name must be unique within a media
device, this makes it impossible to have more than one instance of each
device in a media device. This is a rather severe limitation.

Instead of fixing these drivers, add a comment to the drivers noting that
such static names may not be used in the future.

The alternative of fixing the drivers is troublesome as the entity (as
well as sub-device) name is part of the uAPI. Changing that is almost
certain to break something. As these devices are old but no-one has
encountered a problem with the static names, leave it as-is.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/m5mols/m5mols_core.c
drivers/media/i2c/noon010pc30.c
drivers/media/i2c/s5c73m3/s5c73m3-core.c
drivers/media/i2c/s5k4ecgx.c
drivers/media/i2c/s5k6aa.c