[PATCH v3 0/4] Add link frequency to bitmap helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks,

This set adds a little helper for sensor drivers to match link frequencies
from system firmware with those supported the driver and generate a bitmap
suitable for passing to the control framework.

Imx319, imx334 and imx355 drivers are converted to use the helper, too.

I've tested imx319 and imx355 drivers.

since v2:

- Also fix EXPORT_SYMBOL_GPL() macro argument.

since v1:

- Call the helper v4l2_link_freq_to_bitmap, it's nicer to use that way and
  aligns with v4l2_get_link_freq, too.

- Fix kerneldoc issues and compiler warnings.

Sakari Ailus (4):
  media: v4l: Add a helper for setting up link-frequencies control
  media: imx334: Use v4l2_link_freq_to_bitmap helper
  media: imx319: Use v4l2_link_freq_to_bitmap helper
  media: imx355: Use v4l2_link_freq_to_bitmap helper

 drivers/media/i2c/imx319.c            | 53 +++++++--------------------
 drivers/media/i2c/imx334.c            | 41 ++++++---------------
 drivers/media/i2c/imx355.c            | 53 +++++++--------------------
 drivers/media/v4l2-core/v4l2-common.c | 47 ++++++++++++++++++++++++
 include/media/v4l2-common.h           | 25 +++++++++++++
 5 files changed, 112 insertions(+), 107 deletions(-)

-- 
2.39.2





[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux