提交 bae95b09 编写于 作者: D Devendra Naga 提交者: Greg Kroah-Hartman

staging:ced1401: remove read write callbacks from fops

As the driver says that read and writes should not be performed
and instead the user to kernel transactions are performed through
ioctl interface, remove these functions as they are not required
Signed-off-by: NDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 2341111f
...@@ -261,24 +261,6 @@ static int ced_flush(struct file *file, fl_owner_t id) ...@@ -261,24 +261,6 @@ static int ced_flush(struct file *file, fl_owner_t id)
return res; return res;
} }
static ssize_t ced_read(struct file *file, char *buffer, size_t count,
loff_t * ppos)
{
DEVICE_EXTENSION *pdx = file->private_data;
dev_err(&pdx->interface->dev, "%s called: use ioctl for cedusb",
__func__);
return 0; // as we do not do reads this way
}
static ssize_t ced_write(struct file *file, const char *user_buffer,
size_t count, loff_t * ppos)
{
DEVICE_EXTENSION *pdx = file->private_data;
dev_err(&pdx->interface->dev, "%s called: use ioctl for cedusb",
__func__);
return 0;
}
/*************************************************************************** /***************************************************************************
** CanAcceptIoRequests ** CanAcceptIoRequests
** If the device is removed, interface is set NULL. We also clear our pointer ** If the device is removed, interface is set NULL. We also clear our pointer
...@@ -1402,8 +1384,6 @@ static int ced_ioctl(struct inode *node, struct file *file, unsigned int cmd, ...@@ -1402,8 +1384,6 @@ static int ced_ioctl(struct inode *node, struct file *file, unsigned int cmd,
static const struct file_operations ced_fops = { static const struct file_operations ced_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.read = ced_read,
.write = ced_write,
.open = ced_open, .open = ced_open,
.release = ced_release, .release = ced_release,
.flush = ced_flush, .flush = ced_flush,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册