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/eeprom | |
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/eeprom')
-rw-r--r-- | drivers/eeprom/at24.c | 2 | ||||
-rw-r--r-- | drivers/eeprom/at25.c | 2 |
2 files changed, 2 insertions, 2 deletions
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, |