dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* drm/panel: remove return value of function drm_panel_add which always return true.
@ 2020-07-21 12:24 Bernard
  2020-07-22  4:28 ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Bernard @ 2020-07-21 12:24 UTC (permalink / raw)
  To: sam, dri-devel


Hi:

The function "int drm_panel_add(struct drm_panel *panel)" always returns true, this return value is meaningless.
So I am planning to optimize this function to a non-return implementation, "void drm_panel_add(struct drm_panel *panel)".

In order to achieve this optimization, I need to submit a patch series: 
First, modify the code of each submodule that depends on the return value of this function;
And last, replace the declaration in the drm_panel.h file and implementation in the drm_panel.c file;

Do you mind this optimization?
Looking forward to your reply and suggestions!

BR//Bernard





_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-22  4:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-21 12:24 drm/panel: remove return value of function drm_panel_add which always return true Bernard
2020-07-22  4:28 ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox