From mboxrd@z Thu Jan 1 00:00:00 1970 From: andy.shevchenko@gmail.com (Andy Shevchenko) Date: Tue, 6 Aug 2019 09:41:18 +0300 Subject: [PATCH 04/22] media: Move v4l2_fwnode_parse_link from v4l2 to driver base In-Reply-To: <20190805233505.21167-5-slongerbeam@gmail.com> References: <20190805233505.21167-1-slongerbeam@gmail.com> <20190805233505.21167-5-slongerbeam@gmail.com> Message-ID: List-Id: Linux Driver Project Developer List On Tue, Aug 6, 2019@2:37 AM Steve Longerbeam wrote: > > There is nothing v4l2-specific about v4l2_fwnode_{parse|put}_link(). > Make these functions more generally available by moving them to driver > base, with the appropriate name changes to the functions and struct. > > In the process embed a 'struct fwnode_endpoint' in 'struct fwnode_link' > for both sides of the link, and make use of fwnode_graph_parse_endpoint() > to fully parse both endpoints. Rename members local_node and > remote_node to more descriptive local_port_parent and > remote_port_parent. > May I ask if it's going to be used outside of v4l2? Any user in mind? -- With Best Regards, Andy Shevchenko