@@ -2981,9 +2981,9 @@ static const struct parent_dev_ops vfe_parent_dev_ops = {
*
* Return 0 on success or a negative error code on failure
*/
-static int camss_parse_endpoint_node(struct device *dev,
- struct fwnode_handle *ep,
- struct camss_async_subdev *csd)
+int camss_parse_endpoint_node(struct device *dev,
+ struct fwnode_handle *ep,
+ struct camss_async_subdev *csd)
{
struct csiphy_lanes_cfg *lncfg = &csd->interface.csi2.lane_cfg;
struct v4l2_mbus_config_mipi_csi2 *mipi_csi2;
@@ -14,6 +14,7 @@
#include <linux/types.h>
#include <media/v4l2-async.h>
#include <media/v4l2-device.h>
+#include <media/v4l2-fwnode.h>
#include <media/v4l2-subdev.h>
#include <media/media-device.h>
#include <media/media-entity.h>
@@ -150,6 +151,9 @@ struct parent_dev_ops {
void __iomem *(*get_base_address)(struct camss *camss, int id);
};
+int camss_parse_endpoint_node(struct device *dev,
+ struct fwnode_handle *ep,
+ struct camss_async_subdev *csd);
void camss_add_clock_margin(u64 *rate);
int camss_enable_clocks(int nclocks, struct camss_clock *clock,
struct device *dev);
Export the function to reuse the remote endpoint node helper function from a CSIPHY driver. Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> --- drivers/media/platform/qcom/camss/camss.c | 6 +++--- drivers/media/platform/qcom/camss/camss.h | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-)