Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0dc79d6 authored by Wei Yongjun's avatar Wei Yongjun Committed by John W. Linville
Browse files

cw1200: convert to use simple_open()



This removes an open coded simple_open() function and
replaces file operations references to the function
with simple_open() instead.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4696d477
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -357,12 +357,6 @@ static const struct file_operations fops_counters = {
	.owner = THIS_MODULE,
};

static int cw1200_generic_open(struct inode *inode, struct file *file)
{
	file->private_data = inode->i_private;
	return 0;
}

#ifdef CONFIG_CW1200_ETF
static int cw1200_etf_out_show(struct seq_file *seq, void *v)
{
@@ -511,7 +505,7 @@ static ssize_t cw1200_wsm_dumps(struct file *file,
}

static const struct file_operations fops_wsm_dumps = {
	.open = cw1200_generic_open,
	.open = simple_open,
	.write = cw1200_wsm_dumps,
	.llseek = default_llseek,
};