From patchwork Tue Sep 26 18:26:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: harsha sharma X-Patchwork-Id: 9972505 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 1540F6037F for ; Tue, 26 Sep 2017 18:28:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05DB8286EB for ; Tue, 26 Sep 2017 18:28:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EEDCB28ED9; Tue, 26 Sep 2017 18:28:46 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 71099286EB for ; Tue, 26 Sep 2017 18:28:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031527AbdIZS2p (ORCPT ); Tue, 26 Sep 2017 14:28:45 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34093 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030721AbdIZS2n (ORCPT ); Tue, 26 Sep 2017 14:28:43 -0400 Received: by mail-pg0-f65.google.com with SMTP id u18so7219448pgo.1; Tue, 26 Sep 2017 11:28:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=GsAY6lOVTmTWdm9od9Uge4eJL6tZlkXBrVKJm4UoSQ8=; b=XzNLMSNTv5dr/yZjmzMA4QZMkvlGIWNSRQdHeQkAozuw1q8Gid7+uuI9XINujjGt7f WmZZdPMAQ2TQfuiHqGHamKlWyzCLS2qmQBap7bW2IYc1T6vIV1oYbSMRquCofGM5hc6M 6lCc8f1+gZnQD85ojUUrKHFkmdY10HAeJdBGTZJBDx1fNS/cIWze70OcIT2s2LxvbcgP JVioQOxZkkXcpUCnQXENnEyOi7OzQIYT/RVyeD/JXwsdZQgdF613ba/Kc9irKZVwanjT RHCWmxCB/QlXmgjPQkryteABv+pb796xAsng0aR+G1gxnraOWnau6zRzOXATqg2J88lo qfNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=GsAY6lOVTmTWdm9od9Uge4eJL6tZlkXBrVKJm4UoSQ8=; b=qZHLBpIswJCNNuCXKprw5+UDeNVGdVkNXkTmYlKoisd6jmFVo1ivKuobnpKqh8OjCv nzucoGaOXKetgF+30keSdMs68pr3USGgKZB6Y9Ugjdo8nTMs74FND6PahnnBNoctnP4M HDZ/jSWg1oRFvmqwEiquEoKAibqDxVYmIGfIxmrBwOjyerC5SjZdExjh0mHOgGoV18iU fw7JMU6zXEAS/DpXrfQL4O8x9gEu30EwX1tcqa3/g2w/JUK1/ZR8UMz6+p2AbTvf0zGu 6qGwk5/cJ0FFc47eKfVJ0NLwZ+VJV8K9g11lKTBGWBvj3KygvH6gfvBc/izYjbo4MDcq 3r1Q== X-Gm-Message-State: AHPjjUgkvf/TvrrCsLco5mGYbK26NhJHOfgS9OzcuY3gsdNjR2f6615j jJKfCY60TexZK5QJ8t4xCNg= X-Google-Smtp-Source: AOwi7QBjp1KnEHYT+554C6NHfXLrpxDU+/c1jvynD0VdeWkf01vTJWo2MfMh6SgRAVqpn4p0qlsewA== X-Received: by 10.84.129.11 with SMTP id 11mr11621864plb.379.1506450522782; Tue, 26 Sep 2017 11:28:42 -0700 (PDT) Received: from localhost.localdomain ([103.37.201.27]) by smtp.gmail.com with ESMTPSA id l74sm18049208pfi.9.2017.09.26.11.28.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Sep 2017 11:28:42 -0700 (PDT) From: Harsha Sharma To: gregkh@linuxfoundation.org, jic23@kernel.org, lars@metafoo.de, knaack.h@gmx.de Cc: linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com, Harsha Sharma Subject: [PATCH] staging: iio: trigger: Move header file content to source file Date: Tue, 26 Sep 2017 23:56:15 +0530 Message-Id: <1506450375-15538-1-git-send-email-harshasharmaiitr@gmail.com> X-Mailer: git-send-email 1.9.1 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 The contents of the header file are used only by this single source file. Moved content into iio-trig-bfin-timer.c and removed iio-trig-bfin-timer.h Signed-off-by: Harsha Sharma --- drivers/staging/iio/trigger/iio-trig-bfin-timer.c | 20 ++++++++++++++++++- drivers/staging/iio/trigger/iio-trig-bfin-timer.h | 24 ----------------------- 2 files changed, 19 insertions(+), 25 deletions(-) delete mode 100644 drivers/staging/iio/trigger/iio-trig-bfin-timer.h diff --git a/drivers/staging/iio/trigger/iio-trig-bfin-timer.c b/drivers/staging/iio/trigger/iio-trig-bfin-timer.c index d80dcf8..2cedcaf 100644 --- a/drivers/staging/iio/trigger/iio-trig-bfin-timer.c +++ b/drivers/staging/iio/trigger/iio-trig-bfin-timer.c @@ -19,7 +19,25 @@ #include #include -#include "iio-trig-bfin-timer.h" +/** + * struct iio_bfin_timer_trigger_pdata - timer trigger platform data + * @output_enable: Enable external trigger pulse generation. + * @active_low: Whether the trigger pulse is active low. + * @duty_ns: Length of the trigger pulse in nanoseconds. + * + * This struct is used to configure the output pulse generation of the blackfin + * timer trigger. If output_enable is set to true an external trigger signal + * will generated on the pin corresponding to the timer. This is useful for + * converters which needs an external signal to start conversion. active_low and + * duty_ns are used to configure the type of the trigger pulse. If output_enable + * is set to false no external trigger pulse will be generated and active_low + * and duty_ns are ignored. + **/ +struct iio_bfin_timer_trigger_pdata { + bool output_enable; + bool active_low; + unsigned int duty_ns; +}; struct bfin_timer { unsigned short id, bit; diff --git a/drivers/staging/iio/trigger/iio-trig-bfin-timer.h b/drivers/staging/iio/trigger/iio-trig-bfin-timer.h deleted file mode 100644 index c07321f..0000000 --- a/drivers/staging/iio/trigger/iio-trig-bfin-timer.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef __IIO_BFIN_TIMER_TRIGGER_H__ -#define __IIO_BFIN_TIMER_TRIGGER_H__ - -/** - * struct iio_bfin_timer_trigger_pdata - timer trigger platform data - * @output_enable: Enable external trigger pulse generation. - * @active_low: Whether the trigger pulse is active low. - * @duty_ns: Length of the trigger pulse in nanoseconds. - * - * This struct is used to configure the output pulse generation of the blackfin - * timer trigger. If output_enable is set to true an external trigger signal - * will generated on the pin corresponding to the timer. This is useful for - * converters which needs an external signal to start conversion. active_low and - * duty_ns are used to configure the type of the trigger pulse. If output_enable - * is set to false no external trigger pulse will be generated and active_low - * and duty_ns are ignored. - **/ -struct iio_bfin_timer_trigger_pdata { - bool output_enable; - bool active_low; - unsigned int duty_ns; -}; - -#endif