diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-09-01 09:43:54 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-09-01 09:43:54 +0200 |
commit | e582374ce333cb46a9f3f3ab3d75288f5caac0b3 (patch) | |
tree | e21c0ca3d6bb989f33a01a76222d4a94ab371eb9 /include | |
parent | 60fc3e99b52e7ac3282e80ed4124a9a6d1276b23 (diff) | |
parent | 1a176434334acddc1232e66057dad54897101f6b (diff) | |
download | barebox-e582374ce333cb46a9f3f3ab3d75288f5caac0b3.tar.gz barebox-e582374ce333cb46a9f3f3ab3d75288f5caac0b3.tar.xz |
Merge branch 'for-next/of_path'
Diffstat (limited to 'include')
-rw-r--r-- | include/driver.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/driver.h b/include/driver.h index 728f8abb49..046dd9079d 100644 --- a/include/driver.h +++ b/include/driver.h @@ -436,6 +436,7 @@ struct cdev { struct file_operations *ops; void *priv; struct device_d *dev; + struct device_node *device_node; struct list_head list; struct list_head devices_list; char *name; /* filename under /dev/ */ @@ -456,6 +457,7 @@ int devfs_remove(struct cdev *); int cdev_find_free_index(const char *); struct cdev *device_find_partition(struct device_d *dev, const char *name); struct cdev *cdev_by_name(const char *filename); +struct cdev *cdev_by_device_node(struct device_node *node); struct cdev *cdev_open(const char *name, unsigned long flags); int cdev_do_open(struct cdev *, unsigned long flags); void cdev_close(struct cdev *cdev); |