diff options
author | Arnaud Pouliquen <arnaud.pouliquen@foss.st.com> | 2022-01-24 11:25:15 +0100 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2022-03-13 11:49:53 -0500 |
commit | 608edd96049b142de7944413cd7c24cb3f203d37 (patch) | |
tree | c4d3db180e4ad34bea8cfd4f6cd6c3c7b5f92f00 /drivers/rpmsg/rpmsg_internal.h | |
parent | 69265bc12b6567c6aa9550a198b791e876fbfd2c (diff) | |
download | linux-stable-608edd96049b142de7944413cd7c24cb3f203d37.tar.gz linux-stable-608edd96049b142de7944413cd7c24cb3f203d37.tar.bz2 linux-stable-608edd96049b142de7944413cd7c24cb3f203d37.zip |
rpmsg: Create the rpmsg class in core instead of in rpmsg char
Migrate the creation of the rpmsg class from the rpmsg_char
to the core that the class is usable by the rpmsg_char and
the future rpmsg_ctrl module.
Suggested-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220124102524.295783-3-arnaud.pouliquen@foss.st.com
Diffstat (limited to 'drivers/rpmsg/rpmsg_internal.h')
-rw-r--r-- | drivers/rpmsg/rpmsg_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rpmsg/rpmsg_internal.h b/drivers/rpmsg/rpmsg_internal.h index b1245d3ed7c6..416316200bde 100644 --- a/drivers/rpmsg/rpmsg_internal.h +++ b/drivers/rpmsg/rpmsg_internal.h @@ -18,6 +18,8 @@ #define to_rpmsg_device(d) container_of(d, struct rpmsg_device, dev) #define to_rpmsg_driver(d) container_of(d, struct rpmsg_driver, drv) +extern struct class *rpmsg_class; + /** * struct rpmsg_device_ops - indirection table for the rpmsg_device operations * @create_channel: create backend-specific channel, optional |