rpmsg: Move the rpmsg control device from rpmsg_char to rpmsg_ctrl
authorArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Mon, 24 Jan 2022 10:25:16 +0000 (11:25 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 13 Mar 2022 16:49:53 +0000 (11:49 -0500)
commit617d32938d1be0d67bad73a914635bf787c319c1
tree0e46c37cf8830455ef805aaf6e82908135c1ee37
parent608edd96049b142de7944413cd7c24cb3f203d37
rpmsg: Move the rpmsg control device from rpmsg_char to rpmsg_ctrl

Create the rpmsg_ctrl.c module and move the code related to the
rpmsg_ctrldev device in this new module.

Add the dependency between rpmsg_char and rpmsg_ctrl in the
kconfig file:

1) RPMSG_CTRL can set as module or built-in if
  RPMSG=y || RPMSG_CHAR=y || RPMSG_CHAR=n

2) RPMSG_CTRL can not be set as built-in if
   RPMSG=m || RPMSG_CHAR=m

Note that RPMGH_CHAR and RPMSG_CTRL can be activated separately.
Therefore, the RPMSG_CTRL configuration must be set for backwards compatibility.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220124102524.295783-4-arnaud.pouliquen@foss.st.com
drivers/rpmsg/Kconfig
drivers/rpmsg/Makefile
drivers/rpmsg/rpmsg_char.c
drivers/rpmsg/rpmsg_ctrl.c [new file with mode: 0644]