Commit db1fa290 authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

media: mc: media_device_init() initialises a media_device, not media_entity

The documentation for media_device_init() had several references to
(struct) media_entity where it should have referred to struct media_device
instead. Fix this.
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent a8a2bd10
...@@ -249,28 +249,28 @@ void media_device_cleanup(struct media_device *mdev); ...@@ -249,28 +249,28 @@ void media_device_cleanup(struct media_device *mdev);
* The caller is responsible for initializing the &media_device structure * The caller is responsible for initializing the &media_device structure
* before registration. The following fields of &media_device must be set: * before registration. The following fields of &media_device must be set:
* *
* - &media_entity.dev must point to the parent device (usually a &pci_dev, * - &media_device.dev must point to the parent device (usually a &pci_dev,
* &usb_interface or &platform_device instance). * &usb_interface or &platform_device instance).
* *
* - &media_entity.model must be filled with the device model name as a * - &media_device.model must be filled with the device model name as a
* NUL-terminated UTF-8 string. The device/model revision must not be * NUL-terminated UTF-8 string. The device/model revision must not be
* stored in this field. * stored in this field.
* *
* The following fields are optional: * The following fields are optional:
* *
* - &media_entity.serial is a unique serial number stored as a * - &media_device.serial is a unique serial number stored as a
* NUL-terminated ASCII string. The field is big enough to store a GUID * NUL-terminated ASCII string. The field is big enough to store a GUID
* in text form. If the hardware doesn't provide a unique serial number * in text form. If the hardware doesn't provide a unique serial number
* this field must be left empty. * this field must be left empty.
* *
* - &media_entity.bus_info represents the location of the device in the * - &media_device.bus_info represents the location of the device in the
* system as a NUL-terminated ASCII string. For PCI/PCIe devices * system as a NUL-terminated ASCII string. For PCI/PCIe devices
* &media_entity.bus_info must be set to "PCI:" (or "PCIe:") followed by * &media_device.bus_info must be set to "PCI:" (or "PCIe:") followed by
* the value of pci_name(). For USB devices,the usb_make_path() function * the value of pci_name(). For USB devices,the usb_make_path() function
* must be used. This field is used by applications to distinguish between * must be used. This field is used by applications to distinguish between
* otherwise identical devices that don't provide a serial number. * otherwise identical devices that don't provide a serial number.
* *
* - &media_entity.hw_revision is the hardware device revision in a * - &media_device.hw_revision is the hardware device revision in a
* driver-specific format. When possible the revision should be formatted * driver-specific format. When possible the revision should be formatted
* with the KERNEL_VERSION() macro. * with the KERNEL_VERSION() macro.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment