devfs: remove unused struct filep* argument from open/close
the cdev layer is under the file layer, so it should not use struct filep*. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
62604e6304
commit
3efa8f7bed
|
@ -163,7 +163,7 @@ static int nand_bb_erase(struct cdev *cdev, size_t count, unsigned long offset)
|
|||
}
|
||||
#endif
|
||||
|
||||
static int nand_bb_open(struct cdev *cdev, struct filep *f)
|
||||
static int nand_bb_open(struct cdev *cdev)
|
||||
{
|
||||
struct nand_bb *bb = cdev->priv;
|
||||
|
||||
|
@ -178,7 +178,7 @@ static int nand_bb_open(struct cdev *cdev, struct filep *f)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int nand_bb_close(struct cdev *cdev, struct filep *f)
|
||||
static int nand_bb_close(struct cdev *cdev)
|
||||
{
|
||||
struct nand_bb *bb = cdev->priv;
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ static ssize_t ubi_volume_cdev_write(struct cdev* cdev, const void *buf,
|
|||
return err;
|
||||
}
|
||||
|
||||
static int ubi_volume_cdev_open(struct cdev *cdev, struct filep *f)
|
||||
static int ubi_volume_cdev_open(struct cdev *cdev)
|
||||
{
|
||||
struct ubi_volume_cdev_priv *priv = cdev->priv;
|
||||
|
||||
|
@ -90,7 +90,7 @@ static int ubi_volume_cdev_open(struct cdev *cdev, struct filep *f)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int ubi_volume_cdev_close(struct cdev *cdev, struct filep *f)
|
||||
static int ubi_volume_cdev_close(struct cdev *cdev)
|
||||
{
|
||||
struct ubi_volume_cdev_priv *priv = cdev->priv;
|
||||
struct ubi_volume *vol = priv->vol;
|
||||
|
|
|
@ -143,7 +143,7 @@ static int devfs_open(struct device_d *_dev, FILE *f, const char *filename)
|
|||
f->inode = cdev;
|
||||
|
||||
if (cdev->ops->open) {
|
||||
ret = cdev->ops->open(cdev, f);
|
||||
ret = cdev->ops->open(cdev);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
@ -159,7 +159,7 @@ static int devfs_close(struct device_d *_dev, FILE *f)
|
|||
int ret;
|
||||
|
||||
if (cdev->ops->close) {
|
||||
ret = cdev->ops->close(cdev, f);
|
||||
ret = cdev->ops->close(cdev);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -290,8 +290,8 @@ struct file_operations {
|
|||
|
||||
int (*ioctl)(struct cdev*, int, void *);
|
||||
off_t (*lseek)(struct cdev*, off_t);
|
||||
int (*open)(struct cdev*, struct filep*);
|
||||
int (*close)(struct cdev*, struct filep*);
|
||||
int (*open)(struct cdev*);
|
||||
int (*close)(struct cdev*);
|
||||
int (*erase)(struct cdev*, size_t count, unsigned long offset);
|
||||
int (*protect)(struct cdev*, size_t count, unsigned long offset, int prot);
|
||||
int (*memmap)(struct cdev*, void **map, int flags);
|
||||
|
|
Loading…
Reference in New Issue