/*
* file operations structure will be use heci char device.
*/
-static struct file_operations heci_fops = {
+static const struct file_operations heci_fops = {
.owner = THIS_MODULE,
.read = heci_read,
.ioctl = heci_ioctl,
* returns 0 on success, <0 on failure.
*/
static int heci_registration_cdev(struct cdev *dev, int hminor,
- struct file_operations *fops)
+ const struct file_operations *fops)
{
int ret, devno = MKDEV(heci_major, hminor);
struct file *file, struct list_head *heci_cb_list)
{
struct heci_cb_private *priv_cb_pos = NULL;
- struct heci_cb_private*priv_cb_next = NULL;
+ struct heci_cb_private *priv_cb_next = NULL;
struct file *file_temp;
int rets = 0;
}
if (heci_clear_lists(dev, file))
- dev->iamthif_state = HECI_IAMTHIF_IDLE;
+ dev->iamthif_state = HECI_IAMTHIF_IDLE;
spin_unlock_bh(&dev->device_lock);
}