OSDN Git Service

mfd: mfd-core: Document mfd_add_devices()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 23 Apr 2019 09:04:45 +0000 (11:04 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 8 May 2019 11:06:02 +0000 (12:06 +0100)
Add a kernel doc for mfd_add_devices().

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/mfd-core.c

index 94e3f32..1ade4c8 100644 (file)
@@ -269,6 +269,19 @@ fail_alloc:
        return ret;
 }
 
+/**
+ * mfd_add_devices - register child devices
+ *
+ * @parent:    Pointer to parent device.
+ * @id:                Can be PLATFORM_DEVID_AUTO to let the Platform API take care
+ *             of device numbering, or will be added to a device's cell_id.
+ * @cells:     Array of (struct mfd_cell)s describing child devices.
+ * @n_devs:    Number of child devices to register.
+ * @mem_base:  Parent register range resource for child devices.
+ * @irq_base:  Base of the range of virtual interrupt numbers allocated for
+ *             this MFD device. Unused if @domain is specified.
+ * @domain:    Interrupt domain to create mappings for hardware interrupts.
+ */
 int mfd_add_devices(struct device *parent, int id,
                    const struct mfd_cell *cells, int n_devs,
                    struct resource *mem_base,