From patchwork Tue Feb 20 13:28:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 10230063 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 3745460594 for ; Tue, 20 Feb 2018 13:28:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26AAF28505 for ; Tue, 20 Feb 2018 13:28:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B5522850D; Tue, 20 Feb 2018 13:28:12 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 872E228508 for ; Tue, 20 Feb 2018 13:28:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751738AbeBTN2K (ORCPT ); Tue, 20 Feb 2018 08:28:10 -0500 Received: from mail-qt0-f194.google.com ([209.85.216.194]:41426 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751714AbeBTN2J (ORCPT ); Tue, 20 Feb 2018 08:28:09 -0500 Received: by mail-qt0-f194.google.com with SMTP id a9so16263299qtj.8; Tue, 20 Feb 2018 05:28:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=8gKLU6vEQ+QmzC2TTJ8ispfX367WOMhuZADdqNGIkRg=; b=NiWmvQVS1rMorDtCFI1wGUhDwERMYEWE7EVsO7lMW+rLQX/p01ZCbUL4SzxFBIOrxS vgbngzK3n8cSzvs19oDwHawkFL51cfWakQMuoZ4YhHdVQpVv0aEH9nwYh3fIvlzY/T/M v25ZIWjbNhB1QUsub4AMgxRaPV2ehEkjn6fzmw4CO5jWJg3mW0BMQeJau6imxSdtwBAR +8h5fqOwjteZfZpLz1wEBxn+jVp5cNaX5KBKUVUbHFurz15O7zmk/qNBvNeSMglX9g8w Y3ggJGTu1GItmgpAXhb0b98sN0Ta1vfGU9z95lQCEn2sujhZhY3C/5ORVaw+eydtdQh9 ytfQ== 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:mime-version :content-disposition:user-agent; bh=8gKLU6vEQ+QmzC2TTJ8ispfX367WOMhuZADdqNGIkRg=; b=qTHA6yEeEPn8DpM8TbIjvKESmeu3z6/l1NUEQzaS5dmb3LcIM4KEJAost1oaCZvJf1 WA4FZrg/NqLDIK/a/Xz2lGiRuswWRTU4DtdWdHrw+5hoc6EA7Aj5GlAvTdeUedyYEfgd 3adwZ6aI9XVYqoamLlxp2wWaqcG2FAn3Oz9qHdp7s5rCDk3dsBmvU4Zp9e4TnISRbtjs qZkaC+zdBmzDpLdFjYZrugkLl4HC0rARONagJjqnagdcBYMqCBqg0TdPN2t+3oCj+AQt zgWrzeIuCaNaxN9TnqrfWSI27vdRpQlOb2+0cxBD1ctdOd3CifcqktXTakaG+dmo7sbS bGXg== X-Gm-Message-State: APf1xPAE0gX5zRpeqEHzcRVD6ftMzXflYK/GlL2wWVAJvpcjU0u94H8H P4mas6DcDrwITNEZQrXvxWIVqDWX X-Google-Smtp-Source: AH8x225ICSX7PrLdnoMhIOnFmd2gwLGDkevgIm09ng/Vywyi2YTtDDYtG3Tim3HyV2nqaURbuLwweQ== X-Received: by 10.200.54.213 with SMTP id b21mr19720615qtc.187.1519133288663; Tue, 20 Feb 2018 05:28:08 -0800 (PST) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id u7sm13085032qte.0.2018.02.20.05.28.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Feb 2018 05:28:08 -0800 (PST) Date: Tue, 20 Feb 2018 10:28:04 -0300 From: Rodrigo Siqueira To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler Cc: daniel.baluta@nxp.com, kernel-janitors@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio:dummy: Fix coding style in Kconfig Message-ID: <20180220132804.fnlsi6ag6h5rrqya@smtp.gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20171215 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 This patch fixes the checkpatch.pl warning: drivers/iio/dummy/Kconfig:21: WARNING: please write a paragraph that describes the config symbol fully drivers/iio/dummy/Kconfig:29: WARNING: please write a paragraph that describes the config symbol fully This patch expands the explanation about IIO_DUMMY_EVGEN by using the code documentation found in iio/dummy/iio_dummy_evgen.c. In the same way, the information related to IIO_SIMPLE_DUMMY_BUFFER was extracted from file iio_simple_dummy_buffer.c. Finally, this patch apply the coding-style for Kconfig files (Documentation/process/coding-style.rst) Signed-off-by: Rodrigo Siqueira --- drivers/iio/dummy/Kconfig | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/iio/dummy/Kconfig b/drivers/iio/dummy/Kconfig index 5a29fbd3c531..4a7127fb2979 100644 --- a/drivers/iio/dummy/Kconfig +++ b/drivers/iio/dummy/Kconfig @@ -9,20 +9,24 @@ config IIO_DUMMY_EVGEN tristate config IIO_SIMPLE_DUMMY - tristate "An example driver with no hardware requirements" - depends on IIO_SW_DEVICE - help - Driver intended mainly as documentation for how to write - a driver. May also be useful for testing userspace code - without hardware. + tristate "An example driver with no hardware requirements" + depends on IIO_SW_DEVICE + help + Driver intended mainly as documentation for how to write + a driver. May also be useful for testing userspace code + without hardware. if IIO_SIMPLE_DUMMY config IIO_SIMPLE_DUMMY_EVENTS - bool "Event generation support" - select IIO_DUMMY_EVGEN - help - Add some dummy events to the simple dummy driver. + bool "Event generation support" + select IIO_DUMMY_EVGEN + help + Add some dummy events to the simple dummy driver. + + The purpose of this is to generate 'fake' event interrupts thus + allowing that driver's code to be as close as possible to that + a normal driver talking to hardware. config IIO_SIMPLE_DUMMY_BUFFER bool "Buffered capture support" @@ -32,6 +36,8 @@ config IIO_SIMPLE_DUMMY_BUFFER help Add buffered data capture to the simple dummy driver. + Buffer handling elements of industrial I/O reference driver. + Uses the kfifo buffer. endif # IIO_SIMPLE_DUMMY endmenu