Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i5100_edac: 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: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Wei Yongjun and committed by
Mauro Carvalho Chehab
b0769891 5dae92a7

+1 -7
+1 -7
drivers/edac/i5100_edac.c
··· 961 961 return count; 962 962 } 963 963 964 - static int inject_enable_open(struct inode *inode, struct file *file) 965 - { 966 - file->private_data = inode->i_private; 967 - return 0; 968 - } 969 - 970 964 static const struct file_operations i5100_inject_enable_fops = { 971 - .open = inject_enable_open, 965 + .open = simple_open, 972 966 .write = inject_enable_write, 973 967 .llseek = generic_file_llseek, 974 968 };