From patchwork Wed Feb 13 13:43:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10809925 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 E5D691390 for ; Wed, 13 Feb 2019 13:44:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1C482582C for ; Wed, 13 Feb 2019 13:44:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C56752CFBF; Wed, 13 Feb 2019 13:44:55 +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 6A91B2582C for ; Wed, 13 Feb 2019 13:44:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391165AbfBMNn6 (ORCPT ); Wed, 13 Feb 2019 08:43:58 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:50509 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391142AbfBMNn5 (ORCPT ); Wed, 13 Feb 2019 08:43:57 -0500 Received: by mail-wm1-f65.google.com with SMTP id x7so2502762wmj.0 for ; Wed, 13 Feb 2019 05:43:56 -0800 (PST) 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=rD/Z65OnYoppq/ikSxqUpjeEOremUITKG7uIaduTeV4=; b=kVEMJZR8tdqV14sKwFhzyvImqWJNMq3T9kBsQQsaepO5o/I9ZGRX2UuyIRjZyXt/SK KTSS/jOXrXkxgFsuOIFXhdLa3iLP+QkyUhNt3GhVyvRB49eDu8GAmkoB8XPeWn9U85CX O1zZ0P/+ZBQCUV7Po5DhrrRLpNE3mBf64qSg9BA7oVmVJE3X1dCte7KLks3Mwd39Ys3n zRGH2teO6Q8WfOcw50tADm8FubZAvfPEz0aemlPTHcNY5DgvlMcwwmp+fGr/FQAkq7v+ ZrM0WufqK7RLbDcTLdz1TQvT7qZpLKxdcRkjybhiNrXtHqfET8gnTGhdN7a24+/gz1ZD ifgg== 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=rD/Z65OnYoppq/ikSxqUpjeEOremUITKG7uIaduTeV4=; b=mVQYcRXxXK1RJhr8LfNeZIgZ4R4AAFYcfJBOWhXgmH/joeUj3NNaPqIYPAtghWMJ+/ Rxk0p3721IwG39XblMkyDKQWDCQdd+rsyT4eTrNG3uJuFrG4ot99l+IOUZLIttSxRZM6 CkRkORRcpA+nebVRjEkyhBq5agf0rkw+0ZTdPMCsLQeMiScpOFPRcVk+WIe1s6qa89PL +/d4X9AAzZ01yfX5ibD+3pibwLGiURx/4DSB5J7lokIQMjAEffD5Tz2LLZqUGMXwAHvg 4Q7wGwHBwOV+2MKkAOy2t85u+9yJkwms/NMZOFEX5tdevtkwZt1b2+LsVrtGgiSDk5Z3 Pdlg== X-Gm-Message-State: AHQUAuaOFcrmItJv48cNsgrK6y4qFBKadApV1sFn70/nWkJY4IMGjzb4 3U0703wNq90ZV5kheIKWqLWQ0Q== X-Google-Smtp-Source: AHgI3IYAU8IuXWgYNtLGd62E5KTPoaGgHZS/AIqE/P1IPOU23pBVNL9R6qg0pl/RpVt8GRUbWko8Bw== X-Received: by 2002:a7b:c34c:: with SMTP id l12mr344002wmj.147.1550065436067; Wed, 13 Feb 2019 05:43:56 -0800 (PST) Received: from debian-brgl.home (amontpellier-652-1-54-116.w109-210.abo.wanadoo.fr. [109.210.45.116]) by smtp.gmail.com with ESMTPSA id e7sm2046720wrw.35.2019.02.13.05.43.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 05:43:55 -0800 (PST) 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 v5 05/11] mfd: core: document mfd_add_devices() Date: Wed, 13 Feb 2019 14:43:29 +0100 Message-Id: <20190213134335.10838-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213134335.10838-1-brgl@bgdev.pl> References: <20190213134335.10838-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 --- drivers/mfd/mfd-core.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c index 94e3f32ce935..0898a8db1747 100644 --- a/drivers/mfd/mfd-core.c +++ b/drivers/mfd/mfd-core.c @@ -269,6 +269,20 @@ static int mfd_add_device(struct device *parent, int id, return ret; } +/** + * mfd_add_devices - register a set of child devices + * + * @parent: Parent device for all sub-nodes. + * @id: Platform device id. If >= 0, each sub-device will have its cell_id + * added to this number and use it as the platform device id. + * @cells: Array of mfd cells describing sub-devices. + * @n_devs: Number of sub-devices to register. + * @mem_base: Parent register range resource for sub-devices. + * @irq_base: Base of the range of virtual interrupt numbers allocated for + * this MFD device. Unused if @domain is specified. + * @domain: Interrupt domain used to create mappings for HW interrupt numbers + * specificed in sub-devices' IRQ resources. + */ int mfd_add_devices(struct device *parent, int id, const struct mfd_cell *cells, int n_devs, struct resource *mem_base,