From patchwork Wed Apr 3 09:01:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10883077 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2E66F922 for ; Wed, 3 Apr 2019 09:02:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1559B289D4 for ; Wed, 3 Apr 2019 09:02:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 09CFD289D0; Wed, 3 Apr 2019 09:02:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED52C289D4 for ; Wed, 3 Apr 2019 09:02:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726549AbfDCJB2 (ORCPT ); Wed, 3 Apr 2019 05:01:28 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34007 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726524AbfDCJB2 (ORCPT ); Wed, 3 Apr 2019 05:01:28 -0400 Received: by mail-wr1-f67.google.com with SMTP id p10so20269774wrq.1 for ; Wed, 03 Apr 2019 02:01:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tkqbMW/H6vEZWtLAP23yj2GkaUbuFs58uiDcw9hRulk=; b=2TN7MZZfNKjEq9ytrdQG8+701a4idLOUeuB9j0qR8rhS03eLqO1hnuEhX4vmtuQXNE MVlEozdPTeL8kYIJQU0VFlIWFr9Bh3yvbrju95I99xwso+9sfxvwlkgFptbdfr6gpQWt XfL19V23yuw2/pShFjepaIDZpKWn4p096YboezF6MMhf2IRUE/E1Z2rpZkUtM3M9IgA+ 4tmhR0FYv1+HiIbW9bx66BV5YBpehy7ESiaKbA5G9t+SGDILbmC35XIIYziz7m3vyPIb UqS/+REsXCR8a7OIo6dqmOil2F8JmDJI/+H/JICTqxDedaJ65gix7YyZccc6SyNzoRhT D07A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tkqbMW/H6vEZWtLAP23yj2GkaUbuFs58uiDcw9hRulk=; b=T5jL4rWw8tFrUqbfysMrSfBuiu2z+el1b0ScYn+q3bNFxJju9v3/KL43AZ6UjRTUOF 3qQTwggGrRZp+ULjsLfWTUVGEZ65w01qCSPBCNALVakAnVhaFZpDR1T2JixT2mpZSO6z 3dxALjoWsjMrIpozM2myZvzGpOWwiM4Siq63ynf+JsXkpsfc1ldQ8pJhAvBmJj9lB4g1 +bEzLl3h6B4c2lN8BsnSGoWFOLIKHFLRmR6ftuf5kMPw/twKG5CbSdj33vIFgmhmFsMo BJU7IWebbySQYKcVSw47rcs1LJnZuS7ROt1EaQpsbC1+BANHbx51fY9mb5wO3u1atn88 LSYg== X-Gm-Message-State: APjAAAVgocxiNZHxRiJCCnb70lb9RUP3ahdOhulkimDHcI3cRXpt2+lE sS6aHNNZnaTDOsOkJkEHeoSnPA== X-Google-Smtp-Source: APXvYqwzicqPWSrskXNcvALbVUuWfdVSOZt7lXkW4YWuyy45jQuz/SnsHMBz2DcH5X72bNVR2FrBiQ== X-Received: by 2002:adf:f80d:: with SMTP id s13mr47061861wrp.38.1554282086571; Wed, 03 Apr 2019 02:01:26 -0700 (PDT) Received: from localhost.localdomain (aputeaux-684-1-29-77.w90-86.abo.wanadoo.fr. [90.86.254.77]) by smtp.gmail.com with ESMTPSA id v16sm23981998wru.76.2019.04.03.02.01.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Apr 2019 02:01:25 -0700 (PDT) From: Bartosz Golaszewski To: Rob Herring , Mark Rutland , Linus Walleij , Dmitry Torokhov , Jacek Anaszewski , Pavel Machek , Lee Jones , Sebastian Reichel , Liam Girdwood , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v8 05/11] mfd: core: document mfd_add_devices() Date: Wed, 3 Apr 2019 11:01:02 +0200 Message-Id: <20190403090108.24788-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190403090108.24788-1-brgl@bgdev.pl> References: <20190403090108.24788-1-brgl@bgdev.pl> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bartosz Golaszewski Add a kernel doc for mfd_add_devices(). Signed-off-by: Bartosz Golaszewski Acked-by: Pavel Machek --- drivers/mfd/mfd-core.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c index 94e3f32ce935..1ade4c8cc91f 100644 --- a/drivers/mfd/mfd-core.c +++ b/drivers/mfd/mfd-core.c @@ -269,6 +269,19 @@ static int mfd_add_device(struct device *parent, int id, 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,