From 76bfcf78702c32271f8c278eb106b422b998d5e7 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 7 Feb 2022 10:49:48 +0100 Subject: rename cdev_open() -> cdev_open_by_name() The cdev_* functions normally take a struct cdev * argument, with the exception of cdev_open(). Rename cdev_open() to cdev_open_by_name() to be able to implement cdev_open() with the expected semantics in the next step. Signed-off-by: Sascha Hauer Reviewed-by: Ahmad Fatoum Link: https://lore.barebox.org/20220207094953.949868-3-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer --- include/driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/driver.h b/include/driver.h index 3ef8bfb8a3..644853c2a2 100644 --- a/include/driver.h +++ b/include/driver.h @@ -489,7 +489,7 @@ struct cdev *cdev_readlink(struct cdev *cdev); struct cdev *cdev_by_device_node(struct device_node *node); struct cdev *cdev_by_partuuid(const char *partuuid); struct cdev *cdev_by_diskuuid(const char *partuuid); -struct cdev *cdev_open(const char *name, unsigned long flags); +struct cdev *cdev_open_by_name(const char *name, unsigned long flags); struct cdev *cdev_create_loop(const char *path, ulong flags, loff_t offset); void cdev_remove_loop(struct cdev *cdev); int cdev_do_open(struct cdev *, unsigned long flags); -- cgit v1.2.3