]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l2-common: v4l2_spi_subdev_init : generate unique name
authorPhilippe De Muyter <phdm@macqel.be>
Wed, 1 Aug 2018 21:20:56 +0000 (17:20 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 12 Sep 2018 13:21:09 +0000 (09:21 -0400)
commitcfe7b019536bdd3fbbdf5d755571ecb942eaac4a
tree04955e264f1f6953ec7533b4c833c4069e4386a7
parentd782396bc60d15c9348a3e8b391de7ff170df3cd
media: v4l2-common: v4l2_spi_subdev_init : generate unique name

While v4l2_i2c_subdev_init does give a unique name to the subdev, matching
the one appearing in dmesg for messages generated by dev_info and friends
(e.g. imx185 30-0010), v4l2_spi_subdev_init does a poor job, copying only
the driver name, but not the dev_name(), yielding e.g. "imx185", but
missing the "spi1.1" part, and not generating a unique name.

Fix that.

Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-common.c