public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2 0/5] media: drop driver_version from media_device
@ 2017-07-21 10:57 Hans Verkuil
  2017-07-21 10:57 ` [PATCHv2 1/5] media-device: set driver_version directly Hans Verkuil
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Hans Verkuil @ 2017-07-21 10:57 UTC (permalink / raw)
  To: linux-media; +Cc: Laurent Pinchart, Sakari Ailus, Sylwester Nawrocki

From: Hans Verkuil <hans.verkuil@cisco.com>

Just a little thing that always annoyed me: the driver_version shouldn't
be set in drivers.

The version number never, ever gets updated in drivers. We saw that in
the other media subsystems and now the core always sets it, not drivers.

This works much better, and also works well when backporting the media
code to an older kernel using the media_build system, where the driver
version is set to the kernel version you are backporting from.

So just set the driver_version in media_device_get_info() to
LINUX_VERSION_CODE and drop the driver_version field from struct
media_device.

Regards,

	Hans

Changes since v2:

- just set driver_version in media_device_get_info() and drop it
  in struct media_device.
- combine two lines in atomisp_v4l2.c

Hans Verkuil (5):
  media-device: set driver_version directly
  s3c-camif: don't set driver_version
  uvc: don't set driver_version
  atomisp2: don't set driver_version
  media-device: remove driver_version

 drivers/media/media-device.c                              | 5 +----
 drivers/media/platform/s3c-camif/camif-core.c             | 1 -
 drivers/media/usb/uvc/uvc_driver.c                        | 1 -
 drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c | 6 +-----
 include/media/media-device.h                              | 2 --
 5 files changed, 2 insertions(+), 13 deletions(-)

-- 
2.13.2

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-07-22 11:31 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-21 10:57 [PATCHv2 0/5] media: drop driver_version from media_device Hans Verkuil
2017-07-21 10:57 ` [PATCHv2 1/5] media-device: set driver_version directly Hans Verkuil
2017-07-21 11:06   ` Hans Verkuil
2017-07-21 18:20     ` Laurent Pinchart
2017-07-21 18:21   ` Laurent Pinchart
2017-07-21 10:57 ` [PATCHv2 2/5] s3c-camif: don't set driver_version Hans Verkuil
2017-07-22  6:52   ` Sylwester Nawrocki
2017-07-21 10:57 ` [PATCHv2 3/5] uvc: " Hans Verkuil
2017-07-21 10:57 ` [PATCHv2 4/5] atomisp2: " Hans Verkuil
2017-07-21 10:57 ` [PATCHv2 5/5] media-device: remove driver_version Hans Verkuil
2017-07-21 18:22   ` Laurent Pinchart
2017-07-22  6:52   ` Sylwester Nawrocki
2017-07-22 11:16   ` Sylwester Nawrocki
2017-07-22 11:31     ` Hans Verkuil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox