From patchwork Fri Apr 21 05:46:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 13219511 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61DA0C77B75 for ; Fri, 21 Apr 2023 05:46:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229949AbjDUFq2 (ORCPT ); Fri, 21 Apr 2023 01:46:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjDUFq1 (ORCPT ); Fri, 21 Apr 2023 01:46:27 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 283145FE6; Thu, 20 Apr 2023 22:46:26 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4ec8148f73eso1230854e87.1; Thu, 20 Apr 2023 22:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682055984; x=1684647984; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=qrlfV5n8Lg9nBjvRn99BY3DeQ7uAmbc+OFU0aM7skag=; b=X9WSQYeo/2Y55JJv0fzWwxkRoVJm9Eay/Z7x+JK0akY2eootZI7q4Fkw/P6lDmHam7 hZPsZTFtNMKdYKfMoPRV5hfQjwHvAxv9AknTrxiCgbfiqjwnzP6N/x0bUzTrYtN3uJWb LhxYLY7s8azY5pXP4gnt0UO5Xm+J4iduULrVEDlScibBFJj0ccqGAsWxng9lHnyofI3K oCDLJhat1lFyaDlBCuo0BXXCdazNrEq8wxrJehPc0NLus9MeqICg+N80ojvWb3c4NKA7 4dQSDS6cXtGM8SzhmsL9k1X3Ghk84xgKCN4b1xQG2n+eBZ8cRRSkIhX991y843szLTKt 8SwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682055984; x=1684647984; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qrlfV5n8Lg9nBjvRn99BY3DeQ7uAmbc+OFU0aM7skag=; b=PSIIpHw9EElXm9wqgi/F+Qa/gMDTg83XvXaeDLsABzTk7LNJ8DMgdh4n9jbysqUAYA GKHcDkd9IzuWsp2oBye9ZnBcmft2gfOC2WPAPGiV+CCsFLre3z/iRl6CL6SpQZmCsnLc lyaNYR9gnKFQRyV3tleVbeBLh7w+cJm26bsLwXMldes6ejNFmwymhYmvIYdXyBMT+9li Z+VQIrK6xScAuKbKY4OW14WaZd4L0edd/M7Y790uO9qUy+GVtuMxvKt5JMo0o3ANFHoW GCMf10ikLsjW8tw4M7FnO0qxjwthygo3VYThD7b8LFIxeMEWvm78GVBQQaOHuooJYZxc OLDg== X-Gm-Message-State: AAQBX9c5nkrdfzfytaijrx1HIkz0tAxO58H0tLSNQANzoX9Ziv4/m8U2 4NJZ/cKHNZbgXmqH00Piejw= X-Google-Smtp-Source: AKy350bHTiYbhBuNCMi7vFNCNUKCJSXMr70qE4k+H+8Zfn7V7PleDL2lWHX9mWPwQTjwSnldA1F2UA== X-Received: by 2002:ac2:5ddc:0:b0:4e0:b407:fdf4 with SMTP id x28-20020ac25ddc000000b004e0b407fdf4mr844334lfq.37.1682055984067; Thu, 20 Apr 2023 22:46:24 -0700 (PDT) Received: from fedora (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id p3-20020a05651238c300b004ec5229092dsm447576lft.34.2023.04.20.22.46.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Apr 2023 22:46:23 -0700 (PDT) Date: Fri, 21 Apr 2023 08:46:11 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Jonathan Cameron , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio: fix doc for iio_gts_find_sel_by_int_time Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The kerneldoc for iio_gts_find_sel_by_int_time() has an error. Documentation states that function is searching a selector for a HW-gain while it is searching a selector for an integration time. Fix the documentation by saying the function is looking for a selector for an integration time. Signed-off-by: Matti Vaittinen --- include/linux/iio/iio-gts-helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: 52cc189b4fc6af6accc45fe7b7053d76d8724059 diff --git a/include/linux/iio/iio-gts-helper.h b/include/linux/iio/iio-gts-helper.h index dd64e544a3da..9cb6c80dea71 100644 --- a/include/linux/iio/iio-gts-helper.h +++ b/include/linux/iio/iio-gts-helper.h @@ -135,7 +135,7 @@ static inline int iio_gts_find_int_time_by_sel(struct iio_gts *gts, int sel) /** * iio_gts_find_sel_by_int_time - find selector matching integration time * @gts: Gain time scale descriptor - * @gain: HW-gain for which matching selector is searched for + * @time: Integration time for which matching selector is searched for * * Return: a selector matching given integration time or -EINVAL if * selector was not found.