From patchwork Tue Apr 23 09:04:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10912421 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 5B4591515 for ; Tue, 23 Apr 2019 09:06:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CF3B1FE82 for ; Tue, 23 Apr 2019 09:06:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40411262AE; Tue, 23 Apr 2019 09:06:01 +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 D18401FE82 for ; Tue, 23 Apr 2019 09:06:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727168AbfDWJF7 (ORCPT ); Tue, 23 Apr 2019 05:05:59 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42317 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727250AbfDWJFI (ORCPT ); Tue, 23 Apr 2019 05:05:08 -0400 Received: by mail-wr1-f67.google.com with SMTP id g3so19143835wrx.9 for ; Tue, 23 Apr 2019 02:05:07 -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=kNnNrRcpb3s4NH/3VuQnTQj8v3UQXwFKnkfce3onJgxJCPspTXe+jomH68R1IhvY3I 5Pm5MYsRNVynD5Qz7IeG+MAwK4muTDGuYcePRIDBtFxYQBryOB/xvb7gL+zXGASjbD8A +eHasIXIe6t4Z6lpboIEySQ62fw/X1VFWwhD6Fwr+VyQX252jGwolwLX7p1XoCHI9oPY QF2FJTJw5TARxEKtez0RjFYrG612JF62km9ZhzMIPOAMNiiyX6WhJKpenX19TDMJ2v8F syNchcuuTfEudgRcArNMEc+W4XrsQxAb8sqCMmwV4IOm/1PciUzukctx/LgUqxQ7BKYa V22w== 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=hhx36J9d1fTJrdNBI6811UCK6icvjB3vXsVSnP/MlKUbsGWn+tJjxHfdskb/i9QNPO nnhuAQ58uzN3w1pcvV+mtJuqp1f1jDLUeUUmru2a5ldHrLAFPGYmqAT6Z9uCgW6ijmbY aX0hzueIDOmnRlEwzUesrwcmLImiF5jvX1zRNMiTZw9W+sDO86OpXBxlRZSSqsGvIBjp exu6J0ZX76t9n/86rcAsKkpxtWGXViCrioYBuDtyZbDSyBasV5UOFj6IURjKTkEmfVTM yMR4VU3raZpMsZLiNLZVwj3gGbdwXit0gRjevfFNvc6zJbvLEQoE9wcZP+KxEvAhJR+9 ACzA== X-Gm-Message-State: APjAAAUXqUY95utY/FUZDjescn4cxQkW4WyZVX9yTUru8/Q3Ivkx1ZfD RfeXtGQTgfLkAyZf3vVN+XgF0g== X-Google-Smtp-Source: APXvYqwSsmNpRE3Maqh/FTGBMk0H67lungOSoMrhRue4lmk2pchUJPFHI5NQT+GuIVYQisqcCBPAag== X-Received: by 2002:a05:6000:1111:: with SMTP id z17mr16745012wrw.103.1556010306425; Tue, 23 Apr 2019 02:05:06 -0700 (PDT) Received: from localhost.localdomain (aputeaux-684-1-25-101.w90-86.abo.wanadoo.fr. [90.86.250.101]) by smtp.gmail.com with ESMTPSA id v190sm15360434wme.18.2019.04.23.02.05.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Apr 2019 02:05:05 -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 v10 05/11] mfd: core: document mfd_add_devices() Date: Tue, 23 Apr 2019 11:04:45 +0200 Message-Id: <20190423090451.23711-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190423090451.23711-1-brgl@bgdev.pl> References: <20190423090451.23711-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,