From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
To: Geliang Tang <geliangtang@gmail.com>
Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] video/mbx: use simple_open()
Date: Mon, 30 Jan 2017 16:22:23 +0000 [thread overview]
Message-ID: <13269025.Q9kkMo78lp@amdc3058> (raw)
In-Reply-To: <70f5253031d545642db17d64535f228752c12e6e.1484903730.git.geliangtang@gmail.com>
Hi,
On Friday, January 20, 2017 10:27:05 PM Geliang Tang wrote:
> Drop open_file_generic(), use simple_open() instead of it.
>
> Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Thanks, patch queued for 4.11.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
> ---
> drivers/video/fbdev/mbx/mbxdebugfs.c | 18 ++++++------------
> 1 file changed, 6 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/video/fbdev/mbx/mbxdebugfs.c b/drivers/video/fbdev/mbx/mbxdebugfs.c
> index e3bc00a..2528d3e 100644
> --- a/drivers/video/fbdev/mbx/mbxdebugfs.c
> +++ b/drivers/video/fbdev/mbx/mbxdebugfs.c
> @@ -15,12 +15,6 @@ struct mbxfb_debugfs_data {
> struct dentry *misc;
> };
>
> -static int open_file_generic(struct inode *inode, struct file *file)
> -{
> - file->private_data = inode->i_private;
> - return 0;
> -}
> -
> static ssize_t write_file_dummy(struct file *file, const char __user *buf,
> size_t count, loff_t *ppos)
> {
> @@ -174,42 +168,42 @@ static ssize_t misc_read_file(struct file *file, char __user *userbuf,
> static const struct file_operations sysconf_fops = {
> .read = sysconf_read_file,
> .write = write_file_dummy,
> - .open = open_file_generic,
> + .open = simple_open,
> .llseek = default_llseek,
> };
>
> static const struct file_operations clock_fops = {
> .read = clock_read_file,
> .write = write_file_dummy,
> - .open = open_file_generic,
> + .open = simple_open,
> .llseek = default_llseek,
> };
>
> static const struct file_operations display_fops = {
> .read = display_read_file,
> .write = write_file_dummy,
> - .open = open_file_generic,
> + .open = simple_open,
> .llseek = default_llseek,
> };
>
> static const struct file_operations gsctl_fops = {
> .read = gsctl_read_file,
> .write = write_file_dummy,
> - .open = open_file_generic,
> + .open = simple_open,
> .llseek = default_llseek,
> };
>
> static const struct file_operations sdram_fops = {
> .read = sdram_read_file,
> .write = write_file_dummy,
> - .open = open_file_generic,
> + .open = simple_open,
> .llseek = default_llseek,
> };
>
> static const struct file_operations misc_fops = {
> .read = misc_read_file,
> .write = write_file_dummy,
> - .open = open_file_generic,
> + .open = simple_open,
> .llseek = default_llseek,
> };
prev parent reply other threads:[~2017-01-30 16:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <697f2692562e48afa03304a7e605e8adbee8437e.1484829069.git.geliangtang@gmail.com>
2017-01-20 14:27 ` [PATCH] video/mbx: use simple_open() Geliang Tang
2017-01-30 16:22 ` Bartlomiej Zolnierkiewicz [this message]
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=13269025.Q9kkMo78lp@amdc3058 \
--to=b.zolnierkie@samsung.com \
--cc=geliangtang@gmail.com \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox