diff options
author | Ohad Ben-Cohen <ohad@wizery.com> | 2012-07-04 09:25:06 -0400 |
---|---|---|
committer | Ohad Ben-Cohen <ohad@wizery.com> | 2012-07-05 17:53:27 -0400 |
commit | 160e7c840fe85836040c43e0058d5afced470c85 (patch) | |
tree | 65e91c7aae75ce16fa10dcdd015e664503dec1d5 /include/linux/remoteproc.h | |
parent | 40e575b1d0b34b38519d361c10bdf8e0c688957b (diff) |
remoteproc: adopt the driver core's alloc/add/del/put naming
To make remoteproc's API more intuitive for developers, we adopt
the driver core's naming, i.e. alloc -> add -> del -> put. We'll also
add register/unregister when their first user shows up.
Otherwise - there's no functional change here.
Suggested by Russell King <linux@arm.linux.org.uk>.
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Fernando Guzman Lugo <fernando.lugo@ti.com>
Cc: Sjur Brændeland <sjur.brandeland@stericsson.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Diffstat (limited to 'include/linux/remoteproc.h')
-rw-r--r-- | include/linux/remoteproc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h index b88d6af5ba52..eea3ac86b2b7 100644 --- a/include/linux/remoteproc.h +++ b/include/linux/remoteproc.h | |||
@@ -452,9 +452,9 @@ struct rproc_vdev { | |||
452 | struct rproc *rproc_alloc(struct device *dev, const char *name, | 452 | struct rproc *rproc_alloc(struct device *dev, const char *name, |
453 | const struct rproc_ops *ops, | 453 | const struct rproc_ops *ops, |
454 | const char *firmware, int len); | 454 | const char *firmware, int len); |
455 | void rproc_free(struct rproc *rproc); | 455 | void rproc_put(struct rproc *rproc); |
456 | int rproc_register(struct rproc *rproc); | 456 | int rproc_add(struct rproc *rproc); |
457 | int rproc_unregister(struct rproc *rproc); | 457 | int rproc_del(struct rproc *rproc); |
458 | 458 | ||
459 | int rproc_boot(struct rproc *rproc); | 459 | int rproc_boot(struct rproc *rproc); |
460 | void rproc_shutdown(struct rproc *rproc); | 460 | void rproc_shutdown(struct rproc *rproc); |