All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH 1/3] debugfs: add helper function to create device related seq_file
Date: Fri, 7 Nov 2014 11:04:55 -0800	[thread overview]
Message-ID: <20141107190455.GA4653@kroah.com> (raw)
In-Reply-To: <1414498752-9746-2-git-send-email-arend@broadcom.com>

On Tue, Oct 28, 2014 at 01:19:10PM +0100, Arend van Spriel wrote:
> This patch adds a helper function that simplifies adding a
> so-called single_open sequence file for device drivers. The
> calling device driver needs to provide a read function and
> a device pointer. The field struct seq_file::private will
> reference the device pointer upon call to the read function
> so the driver can obtain his data from it and do its task
> of providing the file content using seq_printf() calls and
> alike. Using this helper function also gets rid of the need
> to specify file operations per debugfs file.
> 
> Signed-off-by: Arend van Spriel <arend@broadcom.com>
> ---
>  fs/debugfs/file.c       | 54 +++++++++++++++++++++++++++++++++++++++++++++++++
>  include/linux/debugfs.h | 16 ++++++++++++++-
>  2 files changed, 69 insertions(+), 1 deletion(-)

Please run your patches through checkpatch before sending them so you
don't get grumpy emails from maintainers complaining about whitespace
errors :(

WARNING: multiple messages have this Message-ID (diff)
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Arend van Spriel <arend@broadcom.com>
Cc: linux-wireless@vger.kernel.org, ath9k-devel@lists.ath9k.org
Subject: Re: [PATCH 1/3] debugfs: add helper function to create device related seq_file
Date: Fri, 7 Nov 2014 11:04:55 -0800	[thread overview]
Message-ID: <20141107190455.GA4653@kroah.com> (raw)
In-Reply-To: <1414498752-9746-2-git-send-email-arend@broadcom.com>

On Tue, Oct 28, 2014 at 01:19:10PM +0100, Arend van Spriel wrote:
> This patch adds a helper function that simplifies adding a
> so-called single_open sequence file for device drivers. The
> calling device driver needs to provide a read function and
> a device pointer. The field struct seq_file::private will
> reference the device pointer upon call to the read function
> so the driver can obtain his data from it and do its task
> of providing the file content using seq_printf() calls and
> alike. Using this helper function also gets rid of the need
> to specify file operations per debugfs file.
> 
> Signed-off-by: Arend van Spriel <arend@broadcom.com>
> ---
>  fs/debugfs/file.c       | 54 +++++++++++++++++++++++++++++++++++++++++++++++++
>  include/linux/debugfs.h | 16 ++++++++++++++-
>  2 files changed, 69 insertions(+), 1 deletion(-)

Please run your patches through checkpatch before sending them so you
don't get grumpy emails from maintainers complaining about whitespace
errors :(

  reply	other threads:[~2014-11-07 19:04 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-28 12:19 [ath9k-devel] [PATCH 0/3] debugfs: adding helper for single seq_file Arend van Spriel
2014-10-28 12:19 ` Arend van Spriel
2014-10-28 12:19 ` [ath9k-devel] [PATCH 1/3] debugfs: add helper function to create device related seq_file Arend van Spriel
2014-10-28 12:19   ` Arend van Spriel
2014-11-07 19:04   ` Greg Kroah-Hartman [this message]
2014-11-07 19:04     ` Greg Kroah-Hartman
2014-10-28 12:19 ` [ath9k-devel] [PATCH 2/3] ath: use seq_file api for ath9k debugfs files Arend van Spriel
2014-10-28 12:19   ` Arend van Spriel
2014-10-31 20:07   ` [ath9k-devel] " John W. Linville
2014-10-31 20:07     ` John W. Linville
2014-11-07 19:05   ` [ath9k-devel] " Greg Kroah-Hartman
2014-11-07 19:05     ` Greg Kroah-Hartman
2014-11-08 13:44     ` [ath9k-devel] " Arend van Spriel
2014-11-08 13:44       ` Arend van Spriel
2014-11-08 14:07       ` [ath9k-devel] " Arend van Spriel
2014-11-08 14:07         ` Arend van Spriel
2014-11-08 16:25         ` [ath9k-devel] " Greg Kroah-Hartman
2014-11-08 16:25           ` Greg Kroah-Hartman
2014-10-28 12:19 ` [ath9k-devel] [PATCH 3/3] ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries Arend van Spriel
2014-10-28 12:19   ` Arend van Spriel
2014-10-31 20:07   ` [ath9k-devel] " John W. Linville
2014-10-31 20:07     ` John W. Linville
2014-11-07 19:05   ` [ath9k-devel] " Greg Kroah-Hartman
2014-11-07 19:05     ` Greg Kroah-Hartman
2014-10-30 19:19 ` [ath9k-devel] [PATCH 0/3] debugfs: adding helper for single seq_file John W. Linville
2014-10-30 19:19   ` John W. Linville
2014-10-30 19:39   ` [ath9k-devel] " Greg Kroah-Hartman
2014-10-30 19:39     ` Greg Kroah-Hartman
2014-10-30 19:48     ` [ath9k-devel] " Arend van Spriel
2014-10-30 19:48       ` Arend van Spriel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141107190455.GA4653@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=ath9k-devel@lists.ath9k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.