diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-03-20 21:58:17 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-04-06 14:43:32 +0200 |
commit | 311282ba6686a9410c7b3123b95b2281c0042f37 (patch) | |
tree | fe105973c2e4389a083b8ede6eef6e52ed42c76f /drivers/mfd | |
parent | bd9ad3a602295fb9aa8882fbf27c54288b150d5f (diff) | |
download | barebox-311282ba6686a9410c7b3123b95b2281c0042f37.tar.gz barebox-311282ba6686a9410c7b3123b95b2281c0042f37.tar.xz |
rename file_operations -> cdev_operations
Linux also has struct file_operations which are something different.
Rename our file_operations to cdev_operations which better matches
what we have.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mfd')
-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 |
6 files changed, 6 insertions, 6 deletions
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, |