All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Bernard <bernard@vivo.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: drm/panel: remove return value of function drm_panel_add which always return true.
Date: Wed, 22 Jul 2020 06:28:02 +0200	[thread overview]
Message-ID: <20200722042802.GA376181@ravnborg.org> (raw)
In-Reply-To: <AMsAqwD5DbRmX6UN6RCXi4qz.1.1595334245532.Hmail.bernard@vivo.com>

Hi Bernard,
On Tue, Jul 21, 2020 at 08:24:05PM +0800, Bernard wrote:
> 
> 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!

First of all, thanks for reaching out.

And yes, please implement this simplification.

To avoid this ends up in too much small patches then I advise you to
divide it up like this:

- One patch to convert all panel drivers in drm/panel/*
  Or if you think this is too much to handle in one patch then split
  it in a few patches.
  We do not want one patch for each panel driver.
- Then a final patch to remove the return value from drm/drm_panel.c

Patches should be made on top of drm-misc-next.

This will make the number of patches manageable, easier to give good
names and easiest to review.

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

      reply	other threads:[~2020-07-22  4:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200722042802.GA376181@ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=bernard@vivo.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.