From patchwork Fri May 18 18:21:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Veenstra X-Patchwork-Id: 10411789 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 04B9B6031B for ; Fri, 18 May 2018 18:21:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E713C28A7F for ; Fri, 18 May 2018 18:21:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB92F28A81; Fri, 18 May 2018 18:21:41 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 7BB3D28A7F for ; Fri, 18 May 2018 18:21:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751722AbeERSVk (ORCPT ); Fri, 18 May 2018 14:21:40 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:50272 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751197AbeERSVi (ORCPT ); Fri, 18 May 2018 14:21:38 -0400 Received: by mail-wm0-f67.google.com with SMTP id t11-v6so15636733wmt.0; Fri, 18 May 2018 11:21:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=hwOfWd//nxu5C9QkJOxxovALEjJLZtN2Z/uk/GEyBRY=; b=jGOlbyghH3Cp+2Dv1UWJcd3euzHF8+VQhCdbGwy+tDn4tG67ZwdQpiYphJujUh+r+j SO9AM22nICZnX+j2Yv5ZPLLprYmhvdeD4nl7DjkwZJpBkakoTLOiJKXeJIIODglsEp1e +Dr/o/I66JEUZYXeIB90wXscHDYqTnV6D2UoFF00fmOlPWgffW62JoyZON0nxwm6ZSYj E9MkEWc+oXODwhMHeopWyR4CbuE5F7dxUhKXF8VXo9zghQE5c9Y7twrHTP71gIzehMI4 OE2exoJGb7Z7YDQYhP2ydURxoe83DESSTeRInetUf9+cAgkvVUGjZlZRnDsiDpvfGA3+ OWiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=hwOfWd//nxu5C9QkJOxxovALEjJLZtN2Z/uk/GEyBRY=; b=YE2AzD7R/US1Kpwe5l5WHQmbBmBV4g8yuXCF5/yyQhwEJYjAdol+BEO4V0gRGq3Ydn GemwZKkaBTvu4dF+8QxTjp0vjVbyuxbnQD4FII9+C12peMm9I49yR3HCUuX/DpXpozZB bJncmeIZGtw+lAPWd9OqG1jAICRNtLnuaG+S1yWYJUHklYIgmxceO8I217b4qsoKeJ2m RClrqd/X6wTwMd5tUzYZnxpY7tvQZVL1EqLYm25SJJL5P7RIu8+7cr4xD8OHDYDqSJSN h6MJ4fGu1YW/5KRpa3yDOvA848yQswTlWLrKQbr5iqq1130cAyrT7jTpU3whG6PTAcm7 XQUQ== X-Gm-Message-State: ALKqPwfKpu5NVsFwmvSVEOCS0AkZTU60HUtaAkYGDwTwJA0L/hDc5KvS 5MfhaKn4svOOIfXN/x1zMXA= X-Google-Smtp-Source: AB8JxZr2z+9MGEEWgpsimrNFui76ejhosdYj2Rv3WZyf308Y+CYOS4barI1Gb/TsRkJDiGCn8ZoT8A== X-Received: by 2002:a50:84e9:: with SMTP id 96-v6mr13112358edq.235.1526667697207; Fri, 18 May 2018 11:21:37 -0700 (PDT) Received: from zenbook-arch (s559434a1.adsl.online.nl. [85.148.52.161]) by smtp.gmail.com with ESMTPSA id d17-v6sm4053062ede.65.2018.05.18.11.21.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 11:21:36 -0700 (PDT) Date: Fri, 18 May 2018 20:21:34 +0200 From: David Veenstra To: jic23@kernel.org, lars@metafoo.de, pmeerw@pmeerw.net, robh+dt@kernel.org Cc: Michael.Hennerich@analog.com, knaack.h@gmx.de, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org Subject: [PATCH v4 03/12] staging: iio: ad2s1200: Add kernel docs to driver state Message-ID: <38a9e24e5cdbc98afbf4d06f9848c55c26ce37ff.1526667118.git.davidjulianveenstra@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add missing kernel docs to the ad2s1200 driver state. Signed-off-by: David Veenstra --- Changes in v4: - Simplified explanation of lock. drivers/staging/iio/resolver/ad2s1200.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/staging/iio/resolver/ad2s1200.c b/drivers/staging/iio/resolver/ad2s1200.c index 9bdcf0c86217..068aa86e9c11 100644 --- a/drivers/staging/iio/resolver/ad2s1200.c +++ b/drivers/staging/iio/resolver/ad2s1200.c @@ -32,6 +32,14 @@ /* clock period in nano second */ #define AD2S1200_TSCLK (1000000000 / AD2S1200_HZ) +/** + * struct ad2s1200_state - driver instance specific data. + * @lock: protects both the GPIO pins and the rx buffer. + * @sdev: spi device. + * @sample: GPIO pin SAMPLE. + * @rdvel: GPIO pin RDVEL. + * @rx: buffer for spi transfers. + */ struct ad2s1200_state { struct mutex lock; struct spi_device *sdev;