[PATCH 0/2] Set sub-device owner field

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

 



Hi folks,

This set makes v4l2_device_register_subdev() and
v4l2_async_register_subdev() macros and prefixes the similarly named
functions with "__". The macro is used to obtain THIS_MODULE pointer that
is then passed to the function, in order to set the owner field of the
sub-device.

Drivers often miss this and one could ask why should the drivers do this
on their own. So instead do it consistently for all callers.

Sakari Ailus (2):
  media: v4l: Set sub-device's owner field to the caller's module
  media: v4l: async: Set owner for async sub-devices

 drivers/media/v4l2-core/v4l2-async.c  | 10 +++++++---
 drivers/media/v4l2-core/v4l2-device.c | 12 +++++++-----
 drivers/media/v4l2-core/v4l2-i2c.c    |  2 +-
 drivers/media/v4l2-core/v4l2-spi.c    |  2 +-
 include/media/v4l2-async.h            |  4 +++-
 include/media/v4l2-device.h           |  7 +++++--
 6 files changed, 24 insertions(+), 13 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