Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp65249lqh; Wed, 27 Mar 2024 15:05:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6D/k9MHn+XKZlDnmroHLdhs7gFx4MahcOTeS56N2gG5bzNELtxinLZiEAumgR90N0ZLEZB7GNsSD0dii75VjtgcOBNvAh6q96B6OGPw== X-Google-Smtp-Source: AGHT+IFtAYDuWhn8YX+eo8oEGeRPN8ZA0Ms6XLODwWaqcrtGZ6w6EyVUD/lkD68TgllI01YdSy6X X-Received: by 2002:ac8:5943:0:b0:431:8372:a9df with SMTP id 3-20020ac85943000000b004318372a9dfmr1217757qtz.46.1711577102125; Wed, 27 Mar 2024 15:05:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711577102; cv=pass; d=google.com; s=arc-20160816; b=wxQEKcGCCmpaXcgViMZimCojwCIjM9imBEJciT03NO01wfmodtxcddhCOigNHYpFZI rvzTceUDVwtVRuTYZOx+Ucr+SLgB+DtQzQcyL3kQMkGk/PVtr2nD+m4Wv74Z3Ypd2+JA 2DdBXbUzxG8DnzWq7MYmDe0TubA7zQ8DZerYfxabp654yIJVcT4fJwZy8WM0Kr8wBq/r pklLeGRhjiabTVsLR8ImOd+ZJHs3J2VkFBvOhdvRo5H7A/GCWik9h1wjH4bbQ90tohGj 5QCn36awYW4RaqIZci+u3RwSOpoEB4gjleqtdimAU26eHy3Vzh4stSUQJ4YrOlCVyfCd HlaA== 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=1eQZ1LzVNbcIDbdXkwgHYpSYK2z5Qvzz7kN5c5cp8Yc=; fh=Ll9aXC4dE7ut2hMtNIL+QhDcIsyCD32kK7nK/ET4xF0=; b=oPxliQ6P/0tf7+xUkPXxoXLPJaHFsJjeUSwfzVA7Qyb5PNsYwSbR6v0XbkF2Cc5Dgc KL3PRTm0LW8K4/UYTej4pR9CU68JFOQmu82B8SLZYMKh0WYVd6SDnLjUZ1xk5K2Qn45j vSDBZEWnIKWvcyy4bArz8GAOEnDmzh+Co+jlJ7KkNsfI07B/FETncMo71AL0O3jX6Ykk z3k57QfJPC/i3ZZUauHcP66A8ZZ7URtrHmOf5u/F3a8EwQyNYXcXRVAbaJtZhZv7aM40 SgVkC+xdRaBmwMRIY4laBgwMaEySzqFZr4WXysr9dO2emSGtELO/xamqVfKLjbCaeWwa JNFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=grIFYLcE; 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-122077-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122077-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v8-20020a05622a188800b0043160b9b8desi73252qtc.219.2024.03.27.15.05.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 15:05:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122077-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=grIFYLcE; 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-122077-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122077-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D872F1C28649 for ; Wed, 27 Mar 2024 22:05:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D8DF15381E; Wed, 27 Mar 2024 22:03:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="grIFYLcE" Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 07E66154BF6; Wed, 27 Mar 2024 22:03:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711577018; cv=none; b=FzDjuXQ5pUpQ1y8Xki+UTTwEAY6wklT9W8XdiJuzmL583xcB4u4Vi2pT8ZeeHLV1saMTum6fwz/iV0dMVw8GgzKd0xOYJEf5x3H7X+fDFopotR9mG1zEskMYG8BO7/Mr0RNcTGj3m0yIxsQpGce1rXtOE5lpXgSFZYMNF8mOkXY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711577018; c=relaxed/simple; bh=f2SyvaQht8iOeJ+BWcT+RNA5GlwZAoeKF3kxpV8wFn4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Myb2isILLoCnc425a0uvbUUovUWtnKLhGZFPPlRDQBMxSjASJNVbjOJ/kcEd50NOkWP5rSCDkfnk0ccD7Ft1fD+1ixxqGuEVMUvwJffo8VaxaTIxsIB7eB1xEKfKWBj4tcLuncfMhbu0tytSlOhvdQS11Cb/1JPxx3I7xexaxnw= 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=grIFYLcE; arc=none smtp.client-ip=209.85.208.42 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-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-56c50e8f578so19645a12.1; Wed, 27 Mar 2024 15:03:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711577015; x=1712181815; 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=1eQZ1LzVNbcIDbdXkwgHYpSYK2z5Qvzz7kN5c5cp8Yc=; b=grIFYLcE8SRYOJjzSJYKypr25zakTelF7+8ETlErMQGuUODnW45LQv+hbdJC18hh7u nIgFBcrxfthHxm1vj578RG3NXqMYm1rT1WHbz/jd9eYssUx1LGWLgE9xUQZ5S5UbDixL Olg9zqsvweCZiz5UYZCxv6aqL6y7/rKY2+S2P/QnYaRl0q9FAJb5k37Hqg4FUgPk3Bmg jePZREYLPEAOJeBnyLJQZFo9JggMvhNcCCrFGY9ftR18OVAYSc/V8giKSEsT5jqJDch/ 7Eyy6IQc59yEHjtQV2cyghXwcf5/zqEtKc5VayxrzHCxeKwbsA/x1anhI7uUcSt+lyYI /sLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711577015; x=1712181815; 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=1eQZ1LzVNbcIDbdXkwgHYpSYK2z5Qvzz7kN5c5cp8Yc=; b=Qk76mG98uLXg1zS/bPdPc0XpUXZnsxJfwGkFYWxFtaNf3kkwqXm91LnXtJTLoZAxaa 4Mlg7vCSpd/x2ePckoArO5ECQZborqAqxivLmBlkc5I4sOKk/S/mFH0G929+EydROPaE 7o7ivvb8AvLGavQwoGREps+xa8mcMdon488mEIRO2Zmfw+Ob2hH3oUDgHaLRetjxS2N3 Xp7Zrq4rY1wjDn2uVoj+VQQqanmYgdnyfDhj8ZhIGr1F5x2nHnHvLP7aTZjSIfcEQCL+ j0Z9TtaFOKPBbahBCNGfGU5OYv++NaReM75poS3yjx8R49TZ2zUBs5NjWiUXOdjq1bKN z82A== X-Forwarded-Encrypted: i=1; AJvYcCUt3DI8CGlJzOkrnQ1d2sqTdNO5j06T5+Xq69Zs9iOIaUXXlW1LlX5qV7sOW4JQkvWbnn0P+ED4Nma8GbVUhp+0joK2DlbUYjjOnKftdgA8sEULXs6a7Ex2y9g/xW6Jv6e2KHjP1kwFfQ== X-Gm-Message-State: AOJu0Yz3dohLOKgRShxJaihqDYrUFqAzlqoQd3TvO8Ow/uuKb1an/MNy lSN9X3W/kmfgBhm/tr/hGMPXCY7ZcObeu0EPrs4ZLjl/DzfN6f/wvYr1EAjGIHk= X-Received: by 2002:a05:6402:4313:b0:56b:e535:6b01 with SMTP id m19-20020a056402431300b0056be5356b01mr621984edc.4.1711577015130; Wed, 27 Mar 2024 15:03:35 -0700 (PDT) Received: from 51a0132e405f.v.cablecom.net (84-72-156-211.dclient.hispeed.ch. [84.72.156.211]) by smtp.gmail.com with ESMTPSA id f25-20020a056402161900b0056bc0c44f02sm59151edv.96.2024.03.27.15.03.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 15:03:34 -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 v5 6/7] iio: accel: adxl345: Add comment to probe Date: Wed, 27 Mar 2024 22:03:19 +0000 Message-Id: <20240327220320.15509-7-l.rubusch@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240327220320.15509-1-l.rubusch@gmail.com> References: <20240327220320.15509-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 setup 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 40aab7683..0046e8d19 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