Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3349484yba; Tue, 23 Apr 2019 02:08:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwm5lqgYoPLDKrwbofV3GSpQJJGGwSbCVO07LzBkAAfvfSRliSCknKzZvFkYZ9VnJzc6lwC X-Received: by 2002:a17:902:e70c:: with SMTP id co12mr25064823plb.339.1556010529773; Tue, 23 Apr 2019 02:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556010529; cv=none; d=google.com; s=arc-20160816; b=vNA0iVF92auZTDFFSsJ0LGZRIa08QTEUdvlyf17iVfFV0BYWHRN4GKeLcyBEQ2H6+W 16880IQP3pJej8qf2WBrM2Lsp1dRM86+FNwLs8eEfoU4vxR8skvbi7VydzlUuqRYVALO 7Ep5AqzsCNeQ4zZIlB8vibmbzNoCFYjJkHcdKuLxYLj4AOcm/0EaVdIRPI+uI0xpqzPm hndVCEnjeiYEMiBqXFXzo3EDj8UVGNtvT1YBMIk0+nuu5ghqV55j02NB2ebNSa79+SNB Epm8ShjTDi4m1MZzDAQCBlNChtERX7sNeKDaHCNiwgnMQvfXLppepwkwN1v0UAMO2V9Z b8ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QumGHYgGUfQaDtIR5geLWZWiBgPfK1JHFl24Y9wsU1E=; b=Oi0vxWasOA68iPC6xN5pDZ2CwUIxuhAikNKn0RUtt8lE1dkn1TGC/NNJQVDQZcvxkE eVjGcWLgMEPJJNXe2aceN/8kA6Dd5E4AiKXPVUkcYZsSrVd4w7NdQA0e2cLsLWDnwyJm EGpnMlJ8F07XpoWf8KpRQake0ATZr4Rl/TeiyoVZeYF2Yfnk+W/seHYaNo8qEzKbA0N8 q1BE2Ww4wgP7zR8xSlwfOwUuX6tuqJOv5uySu4JIHboN2GDI9LfDHbCLuGhH/oi00ieg BVdUaGefm5GlYjy9Z0EJDVaqlaJm3B/BjpL03KHS0lWQs6zrQHBWLl6EhYlS+QRLh5X4 l7PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=kNnNrRcp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u13si14822548pgn.592.2019.04.23.02.08.34; Tue, 23 Apr 2019 02:08:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=kNnNrRcp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727242AbfDWJGC (ORCPT + 99 others); Tue, 23 Apr 2019 05:06:02 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:44496 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727241AbfDWJFI (ORCPT ); Tue, 23 Apr 2019 05:05:08 -0400 Received: by mail-wr1-f68.google.com with SMTP id c5so10299564wrs.11 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=I0G1nofiZDOByQGT3TfTxXkhJtSuNqJIskCHPgsygp2QTBfMbxbmOQ810JVsOjeeeY /vfZfXk+R2aA4cAUipW6+BvwysV/Gj3RuHYtedXKbUx3EvoFqE40kKtS7ewmHwdhX5+0 sjVr1FVfOSQ/X2+g/cLACYKKPszAcwkBHk9jHRWZhVNF+LN9Eq1LuAmgi2xpcquD0lmU /q/BibO4a3ZmSp5DrCLRcA0xthAfdFol+nfYCB2gJtdEtWm1A14QNYjz7u+EcyySE6Wi nXa7qwcwukfKsGRCesnp5eO5A5Z3IvpEshbqdZUn9PI9AQyKrVSmG7Ivfzefh6QDjGWs jvlw== X-Gm-Message-State: APjAAAXuJrjyeNhzo4ka548GWhMdYRT7w+gpievlTY6p117UGs4JVb6z HmjsEpVwUFzDXdTKQBMzOTjzHA== 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, -- 2.21.0