From patchwork Thu Apr 11 12:42:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10895915 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 23132922 for ; Thu, 11 Apr 2019 12:43:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 081E228BB4 for ; Thu, 11 Apr 2019 12:43:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05ECB28C70; Thu, 11 Apr 2019 12:43:22 +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 8A10328D00 for ; Thu, 11 Apr 2019 12:43:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726599AbfDKMnU (ORCPT ); Thu, 11 Apr 2019 08:43:20 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:38144 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726828AbfDKMm3 (ORCPT ); Thu, 11 Apr 2019 08:42:29 -0400 Received: by mail-wr1-f67.google.com with SMTP id k11so7165997wro.5 for ; Thu, 11 Apr 2019 05:42: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=QumGHYgGUfQaDtIR5geLWZWiBgPfK1JHFl24Y9wsU1E=; b=gYpzShV4J6Wc627ki4uaFvs7JkEeCdLpuxdMhDDFxZhA6JDUIMw19Ss1Qu4me0NxwK pUCg3DC7iq7eeiDJutvGlAPNyxDaGikkzKYaSd/OrBxUptVK4EVwffswMLw2e/tdO0pB +v9TZcOKMYlQ2+RHY+Si1ei9peyWJ6NgVKKvmNtvZgkf48I83gb/xCREVgfW2fdoZO2T OJW7pApQbztp3sL0v6+4U3ffPBOgyKh/QlL1PWCjAn4EmbSZvrXeuzdXfLPjhyfF3RnA uUsH7A78Vbks5i45rMk0+n98JQuNuxIhOIfvTxcgHQ6ToobeUQAKW+uHFxOFbT0ZPzTr 4b6g== 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=QumGHYgGUfQaDtIR5geLWZWiBgPfK1JHFl24Y9wsU1E=; b=WfmfVv71Ic+RIP0Zk8yxzcHSplJXrUwCmw+GOEBpyX0kOnVTNLqRBmGJTPVg4AlBpj nKhGpzEpf10dT0AdbGBk4A8Q8xx3SSv0umAZ1n/2K2roYFju6m8wOFOhAvl0ixX4Oshr B02F2wq46H3oFS+PuJPv5U9TRpYwyOtGAfjma1Pm6GxfA+Ymq2fz7fRfqH+kkZEy3S/3 qlLWNVJp5QgsHIeEezqPNtGG5DQ/v/LOC/Yg5qECL3IH89WbaHxrQgFLC5J9TyyiUN8F sVGlv8+7HpCO35lnIvi0/DI3lCRGD3eDSNzoQE6eiywSAxi23oAVpegLoL0dIXZcCd8j pWOQ== X-Gm-Message-State: APjAAAWPr50KicxXw0EWoBW+EpDxsw8GBSciO/PvillzB2vbgRGqfEyL xz2E2gdaTj3FIhsun9a2wNWZHQ== X-Google-Smtp-Source: APXvYqyYWIFc1Wx664zahKFon7C+c8UtquLTGg9UghCuHQxLzA8gjfvXE/HtG4y9Tf/uiDlWFo0fZQ== X-Received: by 2002:adf:dd8c:: with SMTP id x12mr3230809wrl.262.1554986547211; Thu, 11 Apr 2019 05:42:27 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id d4sm32894510wrv.42.2019.04.11.05.42.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 05:42:26 -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 v9 05/11] mfd: core: document mfd_add_devices() Date: Thu, 11 Apr 2019 14:42:06 +0200 Message-Id: <20190411124212.7612-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190411124212.7612-1-brgl@bgdev.pl> References: <20190411124212.7612-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 Acked-for-MFD-by: Lee Jones --- 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,