rpmsg: char: Refactor rpmsg_chrdev_eptdev_create function
authorArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Mon, 24 Jan 2022 10:25:21 +0000 (11:25 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 13 Mar 2022 16:49:53 +0000 (11:49 -0500)
commitcc9da7de4a7c188fbcc4536a460cb73193a68b46
tree9b8b1cf4fcbdf0a4e93481a1c3b3109aed760503
parent472f84eef700ea3014b10a95bc136784b5391fac
rpmsg: char: Refactor rpmsg_chrdev_eptdev_create function

Introduce the rpmsg_chrdev_eptdev_alloc and rpmsg_chrdev_eptdev_add
internal function to split the allocation part from the device add.

This patch prepares the introduction of a rpmsg channel device for the
char device. An default endpoint will be created,
referenced in the rpmsg_eptdev structure before adding the devices.

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-9-arnaud.pouliquen@foss.st.com
drivers/rpmsg/rpmsg_char.c