<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Mar 31, 2025 at 10:09 AM Maxime Ripard <<a href="mailto:mripard@kernel.org">mripard@kernel.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, Mar 30, 2025 at 10:24:12PM -0400, Anusha Srivatsa wrote:<br>
> diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h<br>
> index a9c042c8dea1a82ef979c7a68204e0b55483fc28..97a5457b64fbbe9c91c6a4f41b8e1fbfe4fa604e 100644<br>
> --- a/include/drm/drm_panel.h<br>
> +++ b/include/drm/drm_panel.h<br>
> @@ -268,6 +268,30 @@ struct drm_panel {<br>
>       bool enabled;<br>
>  };<br>
>  <br>
> +void *__devm_drm_panel_alloc(struct device *dev, size_t size, size_t offset,<br>
> +                          const struct drm_panel_funcs *funcs,<br>
> +                          int connector_type);<br>
> +<br>
> +/**<br>
> + * devm_drm_panel_alloc - Allocate and initialize a refcounted panel.<br>
> + * The reference count is initialised to 1 and is automatically  given back<br>
> + * by devm action.<br>
<br>
No. I told you in my previous email that it needed to be between the arguments and returns<br>
sections ...<br>
<br>
> + * @dev: struct device of the panel device<br>
> + * @type: the type of the struct which contains struct &drm_panel<br>
> + * @member: the name of the &drm_panel within @type<br>
> + * @funcs: callbacks for this panel<br>
> + * @connector_type: the connector type (DRM_MODE_CONNECTOR_*) corresponding to<br>
> + * the panel interface<br>
<br>
... So here, just like you did for all the other functions you introduced.<br>
<br>
Also, there's no reference counting yet, so that paragraph should be in<br>
your second patch.<br></blockquote><div><br></div><div>Yup. this patch should just have the helper, arguments and returns.</div><div>Anything about refcounting should be in the next one.</div><div>Making this change.</div><div><br></div><div>Anusha</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Maxime<br>
</blockquote></div></div>