diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/regmap/regmap.c | 2 | ||||
-rw-r--r-- | drivers/eeprom/at24.c | 2 | ||||
-rw-r--r-- | drivers/eeprom/at25.c | 2 | ||||
-rw-r--r-- | drivers/hw_random/core.c | 2 | ||||
-rw-r--r-- | drivers/mfd/act8846.c | 2 | ||||
-rw-r--r-- | drivers/mfd/lp3972.c | 2 | ||||
-rw-r--r-- | drivers/mfd/mc34704.c | 2 | ||||
-rw-r--r-- | drivers/mfd/mc9sdz60.c | 2 | ||||
-rw-r--r-- | drivers/mfd/stmpe-i2c.c | 2 | ||||
-rw-r--r-- | drivers/mfd/twl-core.c | 2 | ||||
-rw-r--r-- | drivers/misc/jtag.c | 2 | ||||
-rw-r--r-- | drivers/misc/sram.c | 2 | ||||
-rw-r--r-- | drivers/mtd/core.c | 2 | ||||
-rw-r--r-- | drivers/mtd/mtdoob.c | 2 | ||||
-rw-r--r-- | drivers/mtd/mtdraw.c | 4 | ||||
-rw-r--r-- | drivers/mtd/nand/nand-bb.c | 2 | ||||
-rw-r--r-- | drivers/mtd/ubi/barebox.c | 4 | ||||
-rw-r--r-- | drivers/net/e1000/eeprom.c | 4 | ||||
-rw-r--r-- | drivers/net/ksz8864rmn.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/mdio_bus.c | 2 | ||||
-rw-r--r-- | drivers/nvmem/core.c | 2 | ||||
-rw-r--r-- | drivers/video/fb.c | 2 | ||||
-rw-r--r-- | drivers/w1/slaves/w1_ds2431.c | 2 | ||||
-rw-r--r-- | drivers/w1/slaves/w1_ds2433.c | 2 |
24 files changed, 27 insertions, 27 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 67d95fe30a..8bbc2373fc 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -352,7 +352,7 @@ static ssize_t regmap_cdev_write(struct cdev *cdev, const void *buf, size_t coun return count; } -static struct file_operations regmap_fops = { +static struct cdev_operations regmap_fops = { .lseek = dev_lseek_default, .read = regmap_cdev_read, .write = regmap_cdev_write, diff --git a/drivers/eeprom/at24.c b/drivers/eeprom/at24.c index 11f23319b6..4fae3a12e4 100644 --- a/drivers/eeprom/at24.c +++ b/drivers/eeprom/at24.c @@ -52,7 +52,7 @@ struct at24_data { struct at24_platform_data chip; struct cdev cdev; - struct file_operations fops; + struct cdev_operations fops; u8 *writebuf; unsigned write_max; diff --git a/drivers/eeprom/at25.c b/drivers/eeprom/at25.c index 9f16f964a8..a9050d6c16 100644 --- a/drivers/eeprom/at25.c +++ b/drivers/eeprom/at25.c @@ -232,7 +232,7 @@ static ssize_t at25_ee_write(struct cdev *cdev, return written ? written : status; } -static struct file_operations at25_fops = { +static struct cdev_operations at25_fops = { .read = at25_ee_read, .write = at25_ee_write, .lseek = dev_lseek_default, diff --git a/drivers/hw_random/core.c b/drivers/hw_random/core.c index ef2a988c76..1c68a379f7 100644 --- a/drivers/hw_random/core.c +++ b/drivers/hw_random/core.c @@ -61,7 +61,7 @@ static ssize_t rng_dev_read(struct cdev *cdev, void *buf, size_t size, return cur; } -static struct file_operations rng_chrdev_ops = { +static struct cdev_operations rng_chrdev_ops = { .read = rng_dev_read, .lseek = dev_lseek_default, }; diff --git a/drivers/mfd/act8846.c b/drivers/mfd/act8846.c index 60029acf76..dfca0498b1 100644 --- a/drivers/mfd/act8846.c +++ b/drivers/mfd/act8846.c @@ -117,7 +117,7 @@ static ssize_t act8846_write(struct cdev *cdev, const void *_buf, size_t count, return count; } -static struct file_operations act8846_fops = { +static struct cdev_operations act8846_fops = { .lseek = dev_lseek_default, .read = act8846_read, .write = act8846_write, diff --git a/drivers/mfd/lp3972.c b/drivers/mfd/lp3972.c index ee794df2d8..054713b942 100644 --- a/drivers/mfd/lp3972.c +++ b/drivers/mfd/lp3972.c @@ -70,7 +70,7 @@ static ssize_t lp_read(struct cdev *cdev, void *_buf, size_t count, loff_t offse return count; } -static struct file_operations lp_fops = { +static struct cdev_operations lp_fops = { .lseek = dev_lseek_default, .read = lp_read, }; diff --git a/drivers/mfd/mc34704.c b/drivers/mfd/mc34704.c index 3dc85f5474..bfda169aaa 100644 --- a/drivers/mfd/mc34704.c +++ b/drivers/mfd/mc34704.c @@ -100,7 +100,7 @@ static ssize_t mc34704_write(struct cdev *cdev, const void *_buf, size_t count, return count; } -static struct file_operations mc34704_fops = { +static struct cdev_operations mc34704_fops = { .lseek = dev_lseek_default, .read = mc34704_read, .write = mc34704_write, diff --git a/drivers/mfd/mc9sdz60.c b/drivers/mfd/mc9sdz60.c index 0d2c56b480..9993efc5de 100644 --- a/drivers/mfd/mc9sdz60.c +++ b/drivers/mfd/mc9sdz60.c @@ -112,7 +112,7 @@ static ssize_t mc_write(struct cdev *cdev, const void *_buf, size_t count, loff_ return count; } -static struct file_operations mc_fops = { +static struct cdev_operations mc_fops = { .lseek = dev_lseek_default, .read = mc_read, .write = mc_write, diff --git a/drivers/mfd/stmpe-i2c.c b/drivers/mfd/stmpe-i2c.c index fb91ffa008..51c56bbf56 100644 --- a/drivers/mfd/stmpe-i2c.c +++ b/drivers/mfd/stmpe-i2c.c @@ -101,7 +101,7 @@ static ssize_t stmpe_write(struct cdev *cdev, const void *_buf, size_t count, lo return count; } -static struct file_operations stmpe_fops = { +static struct cdev_operations stmpe_fops = { .lseek = dev_lseek_default, .read = stmpe_read, .write = stmpe_write, diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index 20bde2cf89..fb435f510f 100644 --- a/drivers/mfd/twl-core.c +++ b/drivers/mfd/twl-core.c @@ -149,7 +149,7 @@ static ssize_t twl_write(struct cdev *cdev, const void *_buf, size_t count, return count; } -struct file_operations twl_fops = { +struct cdev_operations twl_fops = { .lseek = dev_lseek_default, .read = twl_read, .write = twl_write, diff --git a/drivers/misc/jtag.c b/drivers/misc/jtag.c index f5d0c72ed5..9accefa342 100644 --- a/drivers/misc/jtag.c +++ b/drivers/misc/jtag.c @@ -265,7 +265,7 @@ static int jtag_ioctl(struct cdev *inode, int cmd, void *arg) return ret; } -static struct file_operations jtag_operations = { +static struct cdev_operations jtag_operations = { .ioctl = jtag_ioctl, }; diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c index 4fb6f801d2..27b4c681fd 100644 --- a/drivers/misc/sram.c +++ b/drivers/misc/sram.c @@ -25,7 +25,7 @@ struct sram { struct cdev cdev; }; -static struct file_operations memops = { +static struct cdev_operations memops = { .read = mem_read, .write = mem_write, .memmap = generic_memmap_rw, diff --git a/drivers/mtd/core.c b/drivers/mtd/core.c index 1950ee87ee..d2012b5f70 100644 --- a/drivers/mtd/core.c +++ b/drivers/mtd/core.c @@ -438,7 +438,7 @@ int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; } -static struct file_operations mtd_ops = { +static struct cdev_operations mtd_ops = { .read = mtd_op_read, #ifdef CONFIG_MTD_WRITE .write = mtd_op_write, diff --git a/drivers/mtd/mtdoob.c b/drivers/mtd/mtdoob.c index 86076f028d..ffaf9506f3 100644 --- a/drivers/mtd/mtdoob.c +++ b/drivers/mtd/mtdoob.c @@ -63,7 +63,7 @@ static ssize_t mtd_op_read_oob(struct cdev *cdev, void *buf, size_t count, return mtd->oobsize; } -static struct file_operations mtd_ops_oob = { +static struct cdev_operations mtd_ops_oob = { .read = mtd_op_read_oob, .ioctl = mtd_ioctl, .lseek = dev_lseek_default, diff --git a/drivers/mtd/mtdraw.c b/drivers/mtd/mtdraw.c index ab360b7862..4f7c3b836c 100644 --- a/drivers/mtd/mtdraw.c +++ b/drivers/mtd/mtdraw.c @@ -287,7 +287,7 @@ static ssize_t mtdraw_erase(struct cdev *cdev, loff_t count, loff_t offset) } #endif -static const struct file_operations mtd_raw_fops = { +static const struct cdev_operations mtd_raw_fops = { .read = mtdraw_read, .write = mtdraw_write, .erase = mtdraw_erase, @@ -305,7 +305,7 @@ static int add_mtdraw_device(struct mtd_info *mtd, const char *devname, void **p mtdraw->writebuf = xmalloc(RAW_WRITEBUF_SIZE); mtdraw->mtd = mtd; - mtdraw->cdev.ops = (struct file_operations *)&mtd_raw_fops; + mtdraw->cdev.ops = (struct cdev_operations *)&mtd_raw_fops; mtdraw->cdev.size = mtd_div_by_wb(mtd->size, mtd) * (mtd->writesize + mtd->oobsize); mtdraw->cdev.name = basprintf("%s.raw", mtd->cdev.name); diff --git a/drivers/mtd/nand/nand-bb.c b/drivers/mtd/nand/nand-bb.c index a1523c3c89..c1977381d4 100644 --- a/drivers/mtd/nand/nand-bb.c +++ b/drivers/mtd/nand/nand-bb.c @@ -264,7 +264,7 @@ static loff_t nand_bb_lseek(struct cdev *cdev, loff_t __offset) return -EINVAL; } -static struct file_operations nand_bb_ops = { +static struct cdev_operations nand_bb_ops = { .open = nand_bb_open, .close = nand_bb_close, .read = nand_bb_read, diff --git a/drivers/mtd/ubi/barebox.c b/drivers/mtd/ubi/barebox.c index d67e566db6..65f5456455 100644 --- a/drivers/mtd/ubi/barebox.c +++ b/drivers/mtd/ubi/barebox.c @@ -218,7 +218,7 @@ static int ubi_volume_cdev_ioctl(struct cdev *cdev, int cmd, void *buf) return err; } -static struct file_operations ubi_volume_fops = { +static struct cdev_operations ubi_volume_fops = { .open = ubi_volume_cdev_open, .close = ubi_volume_cdev_close, .read = ubi_volume_cdev_read, @@ -467,7 +467,7 @@ static int ubi_cdev_ioctl(struct cdev *cdev, int cmd, void *buf) return 0; } -static struct file_operations ubi_fops = { +static struct cdev_operations ubi_fops = { .ioctl = ubi_cdev_ioctl, }; diff --git a/drivers/net/e1000/eeprom.c b/drivers/net/e1000/eeprom.c index 319910103e..3f39db7164 100644 --- a/drivers/net/e1000/eeprom.c +++ b/drivers/net/e1000/eeprom.c @@ -1294,7 +1294,7 @@ exit: return ret; } -static struct file_operations e1000_invm_ops = { +static struct cdev_operations e1000_invm_ops = { .read = e1000_invm_cdev_read, .write = e1000_invm_cdev_write, .lseek = dev_lseek_default, @@ -1320,7 +1320,7 @@ static ssize_t e1000_eeprom_cdev_read(struct cdev *cdev, void *buf, return (count / 2) * 2; }; -static struct file_operations e1000_eeprom_ops = { +static struct cdev_operations e1000_eeprom_ops = { .read = e1000_eeprom_cdev_read, .lseek = dev_lseek_default, }; diff --git a/drivers/net/ksz8864rmn.c b/drivers/net/ksz8864rmn.c index 860af448ea..8b9d66019b 100644 --- a/drivers/net/ksz8864rmn.c +++ b/drivers/net/ksz8864rmn.c @@ -120,7 +120,7 @@ static ssize_t micel_switch_write(struct cdev *cdev, const void *_buf, size_t co return count; } -static struct file_operations micrel_switch_ops = { +static struct cdev_operations micrel_switch_ops = { .read = micel_switch_read, .write = micel_switch_write, .lseek = dev_lseek_default, diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c index d209716a14..5d4218f7c0 100644 --- a/drivers/net/phy/mdio_bus.c +++ b/drivers/net/phy/mdio_bus.c @@ -285,7 +285,7 @@ static ssize_t phydev_write(struct cdev *cdev, const void *_buf, size_t count, l return count; } -static struct file_operations phydev_ops = { +static struct cdev_operations phydev_ops = { .read = phydev_read, .write = phydev_write, .lseek = dev_lseek_default, diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 4e50a8843f..172fa8b720 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -82,7 +82,7 @@ static ssize_t nvmem_cdev_write(struct cdev *cdev, const void *buf, size_t count return retlen; } -static struct file_operations nvmem_chrdev_ops = { +static struct cdev_operations nvmem_chrdev_ops = { .read = nvmem_cdev_read, .write = nvmem_cdev_write, .lseek = dev_lseek_default, diff --git a/drivers/video/fb.c b/drivers/video/fb.c index 004df1e604..5e829e832d 100644 --- a/drivers/video/fb.c +++ b/drivers/video/fb.c @@ -221,7 +221,7 @@ static int fb_set_modename(struct param_d *param, void *priv) return 0; } -static struct file_operations fb_ops = { +static struct cdev_operations fb_ops = { .read = mem_read, .write = mem_write, .memmap = generic_memmap_rw, diff --git a/drivers/w1/slaves/w1_ds2431.c b/drivers/w1/slaves/w1_ds2431.c index e3e929670d..13691d7bab 100644 --- a/drivers/w1/slaves/w1_ds2431.c +++ b/drivers/w1/slaves/w1_ds2431.c @@ -257,7 +257,7 @@ out_up: #define ds2431_cdev_write NULL #endif -static struct file_operations ds2431_ops = { +static struct cdev_operations ds2431_ops = { .read = ds2431_cdev_read, .write = ds2431_cdev_write, .lseek = dev_lseek_default, diff --git a/drivers/w1/slaves/w1_ds2433.c b/drivers/w1/slaves/w1_ds2433.c index a907c6bf3c..f521a46a75 100644 --- a/drivers/w1/slaves/w1_ds2433.c +++ b/drivers/w1/slaves/w1_ds2433.c @@ -156,7 +156,7 @@ out_up: #define ds2433_cdev_write NULL #endif -static struct file_operations ds2433_ops = { +static struct cdev_operations ds2433_ops = { .read = ds2433_cdev_read, .write = ds2433_cdev_write, .lseek = dev_lseek_default, |