summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-03-20 21:58:17 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-04-06 14:43:32 +0200
commit311282ba6686a9410c7b3123b95b2281c0042f37 (patch)
treefe105973c2e4389a083b8ede6eef6e52ed42c76f /include/driver.h
parentbd9ad3a602295fb9aa8882fbf27c54288b150d5f (diff)
downloadbarebox-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 'include/driver.h')
-rw-r--r--include/driver.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/driver.h b/include/driver.h
index f37805db17..91653b7946 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -420,7 +420,7 @@ int platform_driver_register(struct driver_d *drv);
int platform_device_register(struct device_d *new_device);
-struct file_operations {
+struct cdev_operations {
/*! Called in response of reading from this device. Required */
ssize_t (*read)(struct cdev*, void* buf, size_t count, loff_t offset, ulong flags);
@@ -441,7 +441,7 @@ struct file_operations {
#define MAX_PARTUUID_STR sizeof("00112233-4455-6677-8899-AABBCCDDEEFF")
struct cdev {
- const struct file_operations *ops;
+ const struct cdev_operations *ops;
void *priv;
struct device_d *dev;
struct device_node *device_node;