Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1654602lqz; Mon, 1 Apr 2024 12:51:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUOjVc7Vl3/kwuYSSeYrclXdSFpUqvPpiw5P1qd49uhmRLrc6ZRswx2OmdFVRhycDxSi9y8lAuYeI7cKUjm+TBvHDUwcaflsC+oNZDMeQ== X-Google-Smtp-Source: AGHT+IFHKly7uRtMbeGEeLNHwC2Az7KGPyudDKIQSDUaTJlyibrXd9h0O+F+4StwTeZRtjW/Gdmy X-Received: by 2002:a17:903:124c:b0:1e0:e2d5:524f with SMTP id u12-20020a170903124c00b001e0e2d5524fmr15335752plh.25.1712001066392; Mon, 01 Apr 2024 12:51:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712001066; cv=pass; d=google.com; s=arc-20160816; b=EQCwq2a7rTM8nY/PHHfZDwvaqfbr88V89anqaen85nC+TMqycSow6mhH6V5E/2daJJ XP1Qqf/6uXyXTO3ySYxoqwfmb7dn3R3DMBNEGW1lDlIo2Ggdc8b5LGQiP9+MN/Kyn4vc +U1W0vikABoYH01XZ0JtIemglzo9GJFdA/OeXGatkYxA3iCZe5AeylC2Ntpm6vgWUS72 TpLnhhilE1/xOCvcGLSrsIT14NJBzU07QxIuQ1FT/bo8XN7hUb7geFMUqGLunfeZgZWE hkZCDOJnUX0Oa6vXouWQzVHwLB0gzB0BNVFTCpay9iXg3esIm3Gm5jDW3FMqfBwYbxtF zhEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Z9u6xO0mso3s0p6mb+hwA3wZM2r51h58gapOfOhMuxY=; fh=l/7PHTS3mAXnzb9/wkzMg4nYFWkz683mQbcJAiuzIJw=; b=KFaeNv71JDgAXscCMnSeCkdC321NppVaBSbAspME6mqdkIEO0IPuj48QeycpCSMJRp ZwNItt5ZsXCHacB9Noa4n8soFOVCi0dardj7SPAhMnS+DCVNTkeS/qubzPWDsS+t2ZLp YR2pBTxk3zTzOgr0xzVWbMYT1xtn4QfCk564zniIXl4cTeEMIukNJJYHTl7cu+uw3SdY 7r2JTUASb3fLa3b3+QFPL5LRLYL8OXocYpxQ/p5JFWW3wFkqZ/VdxxZAQs/owxPbpLnn JfFn2YZ+UV8hY9iu/ZMKZi01IOOSeyJGy5xTRuwE2/L6MJLG6qxBACg0j/8LAPDicnJc j6Xw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OmsXM0P3; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-127013-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id iz11-20020a170902ef8b00b001e2038eec1csi9177864plb.343.2024.04.01.12.51.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 12:51:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127013-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OmsXM0P3; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-127013-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 10EA2282349 for ; Mon, 1 Apr 2024 19:51:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E975D58120; Mon, 1 Apr 2024 19:49:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OmsXM0P3" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 911AD5730A; Mon, 1 Apr 2024 19:49:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712000967; cv=none; b=M1F967HAMlX0fPzkQtk2TQv1y9ykXkH/gVYuAjl5YGcMPGaz8VN0CNpfDpsJdQDruM5Ab6F3foCTXnkQc4e0HdNsUkljYMPFn9CjaPJT6ZSXFW02LqWogymdtOefXHVwE4OOWX6J/rYGuo/PYsarUgQmF5SPbiyoa0GSQQjmqmg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712000967; c=relaxed/simple; bh=igZSiokSHxZZYZbPJ3bqgHJfKaRxjkQxdwMAadgF1wA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=D3vfaWRil43wTiACPjSYKJMm/jkBVauoutgGNqr0nKVQ69gHLFw+G9aYdTDsDbOYcDDEARAJDzwnZdM7GIRIS4LabrR33R5bffxB9sN+BEiKSpRSKHC0p0BBgxBKcKX/VKpuhmlju7KzUL8kiukmHlx9ah4jORINpmFj2nA0Ogw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=OmsXM0P3; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a4e60a64abcso203190366b.1; Mon, 01 Apr 2024 12:49:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712000964; x=1712605764; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Z9u6xO0mso3s0p6mb+hwA3wZM2r51h58gapOfOhMuxY=; b=OmsXM0P34FgrDwALrz4NeehDa3vHEtEgEeFkUsE9GzV2qx9yoMo/jDBHMXj7I294bI K9BEvNzMw2AcwBeOHQgMDDJEOnn0dILGXXYymVWz5e5pbgzh/y5aUel8NKE2sprDZsxK gy6Y+R0Yu8gYAWyV1aAVvekNXMZQMbgJJQg8Rgi6312HnZn62dufvq4HZ7YU6ItwDkWI jahfdx+l+3keBCCayVa39HTwzzJeYxLv4qvvyEcNBiKqKjUMusaiq1qrBSYTLoM8N+pN QKUoMy6EKplsJeBOvFHscQO3wmb0OSCP+coXOBIMztWfP/3dj0ND/i5ewwMVTyrI1pD7 FWvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712000964; x=1712605764; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z9u6xO0mso3s0p6mb+hwA3wZM2r51h58gapOfOhMuxY=; b=JCKcaGwjYWcokde7g/+3KyTSttF/MSXVZLGupPZqj89BvjD7HZ4LHhF4/yTdkzwGMs iDzWkUqGJY2eWP0Lyx2Vd4tyR2wbFVy29xMsFH2L+psO41KdgBJuNjP03eXkkCIv2Ls8 ATLnEUTKClJlJhWzBxdOhGYFfV32TfNPrXlrnhJgXtf6FI/JMW+foqW56xMpKQIuQko1 ++a8eQfptkEsMm2/MtbTCfIVEN0zvGvyR587RLkpNCyzutcnWNE1LupiImK5dwgIRcZm f0bzNfzZpVbg/TezZw6VjxoHRDOTlJrRd1Z0Y9/b9On1h1dnsqNhUMOsYzn96ALCEva7 iQ9A== X-Forwarded-Encrypted: i=1; AJvYcCX9PkrrWu66orZ9s1sqWWnH+yuodctcCj42uelXS7llPHSfq8qDNUqiefrdSrAmD4pR70E1nye494fdZIAGeq6TnY6J5Pib1O2nu1xE2+d2bpmz8OHmemzQgo/8QnVz+Jx2YcM/3uMxjA== X-Gm-Message-State: AOJu0YweDomKs+/5ISyEYMe602D3rp0gXs564XGZLjBtlcRVAkvIiq97 e8tmUzXw6pyfdoCqXoxFQT6ZrTIiuofpenLmwWeU8Ls4f4nOJuEH X-Received: by 2002:a17:906:d0d3:b0:a4e:68af:b1d8 with SMTP id bq19-20020a170906d0d300b00a4e68afb1d8mr3488845ejb.2.1712000963797; Mon, 01 Apr 2024 12:49:23 -0700 (PDT) Received: from 13a4f82a8f12.v.cablecom.net (84-72-156-211.dclient.hispeed.ch. [84.72.156.211]) by smtp.gmail.com with ESMTPSA id dn21-20020a17090794d500b00a4588098c5esm5540575ejc.132.2024.04.01.12.49.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 12:49:23 -0700 (PDT) From: Lothar Rubusch To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, eraretuya@gmail.com, l.rubusch@gmail.com Subject: [PATCH v7 7/8] iio: accel: adxl345: Add comment to probe Date: Mon, 1 Apr 2024 19:49:05 +0000 Message-Id: <20240401194906.56810-8-l.rubusch@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240401194906.56810-1-l.rubusch@gmail.com> References: <20240401194906.56810-1-l.rubusch@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a comment to the probe() function to describe the passed function pointer argument in particular. Signed-off-by: Lothar Rubusch --- drivers/iio/accel/adxl345_core.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/iio/accel/adxl345_core.c b/drivers/iio/accel/adxl345_core.c index 5d0f3243e..006ce66c0 100644 --- a/drivers/iio/accel/adxl345_core.c +++ b/drivers/iio/accel/adxl345_core.c @@ -168,6 +168,16 @@ static void adxl345_powerdown(void *regmap) regmap_write(regmap, ADXL345_REG_POWER_CTL, ADXL345_POWER_CTL_STANDBY); } +/** + * adxl345_core_probe() - probe and setup for the adxl345 accelerometer, + * also covers the adlx375 accelerometer + * @dev: Driver model representation of the device + * @regmap: Regmap instance for the device + * @setup: Setup routine to be executed right before the standard device + * setup + * + * Return: 0 on success, negative errno on error + */ int adxl345_core_probe(struct device *dev, struct regmap *regmap, int (*setup)(struct device*, struct regmap*)) { -- 2.25.1