All of lore.kernel.org
 help / color / mirror / Atom feed
From: Inki Dae <inki.dae@samsung.com>
To: dri-devel@lists.freedesktop.org
Cc: daniel.vetter@intel.com
Subject: [PATCH 01/14] drm/bridge: change return type of drm_bridge_add function
Date: Mon, 03 Jul 2017 17:42:17 +0900	[thread overview]
Message-ID: <1499071350-25168-2-git-send-email-inki.dae@samsung.com> (raw)
In-Reply-To: <1499071350-25168-1-git-send-email-inki.dae@samsung.com>

This patch changes return type of drm_bridge_add function.

This function never return negative value but returns only 0.
So it changes the return type of this function to void one.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
---
 drivers/gpu/drm/drm_bridge.c | 7 +------
 include/drm/drm_bridge.h     | 2 +-
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c
index dc8cdfe..1638bfe 100644
--- a/drivers/gpu/drm/drm_bridge.c
+++ b/drivers/gpu/drm/drm_bridge.c
@@ -67,17 +67,12 @@
  * drm_bridge_add - add the given bridge to the global bridge list
  *
  * @bridge: bridge control structure
- *
- * RETURNS:
- * Unconditionally returns Zero.
  */
-int drm_bridge_add(struct drm_bridge *bridge)
+void drm_bridge_add(struct drm_bridge *bridge)
 {
 	mutex_lock(&bridge_lock);
 	list_add_tail(&bridge->list, &bridge_list);
 	mutex_unlock(&bridge_lock);
-
-	return 0;
 }
 EXPORT_SYMBOL(drm_bridge_add);
 
diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h
index 1dc94d5..4254423 100644
--- a/include/drm/drm_bridge.h
+++ b/include/drm/drm_bridge.h
@@ -245,7 +245,7 @@ struct drm_bridge {
 	void *driver_private;
 };
 
-int drm_bridge_add(struct drm_bridge *bridge);
+void drm_bridge_add(struct drm_bridge *bridge);
 void drm_bridge_remove(struct drm_bridge *bridge);
 struct drm_bridge *of_drm_find_bridge(struct device_node *np);
 int drm_bridge_attach(struct drm_encoder *encoder, struct drm_bridge *bridge,
-- 
1.9.1

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

  parent reply	other threads:[~2017-07-03  8:42 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170703084232epcas1p4edf515b3b0f22e11ef85eaedccebf956@epcas1p4.samsung.com>
2017-07-03  8:42 ` [PATCH 00/14] clean up drm_bridge_add Inki Dae
     [not found]   ` <CGME20170703084232epcas1p4005cd89166662ca59863c24238d617f8@epcas1p4.samsung.com>
2017-07-03  8:42     ` Inki Dae [this message]
2017-07-03  9:56       ` [PATCH 01/14] drm/bridge: change return type of drm_bridge_add function Emil Velikov
     [not found]   ` <CGME20170703084232epcas1p442bb65ff24d02d3eba39fc4755ed448c@epcas1p4.samsung.com>
2017-07-03  8:42     ` [PATCH 02/14] drm/bridge: adv7511: clean up drm_bridge_add call Inki Dae
     [not found]   ` <CGME20170703084232epcas1p4b0b9b7e03aef4d024c33cbc592434b54@epcas1p4.samsung.com>
2017-07-03  8:42     ` [PATCH 03/14] drm/bridge: analogix-anx78xx: " Inki Dae
     [not found]   ` <CGME20170703084232epcas1p45bcdd67d70e604f72e1519f39018bf91@epcas1p4.samsung.com>
2017-07-03  8:42     ` [PATCH 04/14] drm/bridge: vga-dac: " Inki Dae
     [not found]   ` <CGME20170703084232epcas1p4f7be46256e775298129c0097844058e4@epcas1p4.samsung.com>
2017-07-03  8:42     ` [PATCH 05/14] drm/bridge: nxp-ptn3460: " Inki Dae
     [not found]   ` <CGME20170703084232epcas5p17a81e626afad21d0e62bb09531bd4163@epcas5p1.samsung.com>
2017-07-03  8:42     ` [PATCH 06/14] drm/bridge: panel: " Inki Dae
     [not found]   ` <CGME20170703084232epcas5p10533a8a34ffa39dd126098ed08383df9@epcas5p1.samsung.com>
2017-07-03  8:42     ` [PATCH 07/14] drm/bridge: ps8622: " Inki Dae
     [not found]   ` <CGME20170703084233epcas5p107a9e0c549dbbfe6608fb5748d740575@epcas5p1.samsung.com>
2017-07-03  8:42     ` [PATCH 08/14] drm/bridge: sii902x: " Inki Dae
     [not found]   ` <CGME20170703084233epcas5p1937d7b7f6e04d6c69efadd9149d5caed@epcas5p1.samsung.com>
2017-07-03  8:42     ` [PATCH 09/14] drm/bridge: synopsys: dw-hdmi: " Inki Dae
     [not found]   ` <CGME20170703084233epcas1p4d30db0ba6db68ec5b697dd9939f45ae1@epcas1p4.samsung.com>
2017-07-03  8:42     ` [PATCH 10/14] drm/bridge: tc358767: " Inki Dae
     [not found]   ` <CGME20170703084233epcas5p19dc746895c958002918b127536a7e1f9@epcas5p1.samsung.com>
2017-07-03  8:42     ` [PATCH 11/14] drm/bridge: ti-tfp410: " Inki Dae
     [not found]   ` <CGME20170703084233epcas5p1077313e0d3a7c1fb7d8b2a3c23b19275@epcas5p1.samsung.com>
2017-07-03  8:42     ` [PATCH 12/14] drm/exynos: mic: " Inki Dae
2017-07-05  9:00       ` Archit Taneja
2017-07-05  9:05         ` Inki Dae
2017-07-05  9:14           ` Archit Taneja
2017-07-05 11:12             ` Emil Velikov
2017-07-06  7:59               ` Archit Taneja
2017-08-18  8:04               ` Inki Dae
2017-08-18  8:03             ` Inki Dae
2017-08-18  8:01       ` Inki Dae
     [not found]   ` <CGME20170703084233epcas5p1dbabf330e10fc4f88c420789499d2a36@epcas5p1.samsung.com>
2017-07-03  8:42     ` [PATCH 13/14] drm/mediatek: hdmi: " Inki Dae
2017-07-05  9:01       ` Archit Taneja
2017-08-18  8:54         ` Daniel Vetter
2017-08-18 13:03           ` CK Hu
     [not found]   ` <CGME20170703084234epcas5p1095418cf48287cc318db72b628d5cb28@epcas5p1.samsung.com>
2017-07-03  8:42     ` [PATCH 14/14] drm/sti: sti_vdo: " Inki Dae
2017-08-18 15:15       ` Sean Paul
2017-07-06  8:58   ` [PATCH 00/14] clean up drm_bridge_add Archit Taneja
2017-08-22  5:14     ` Inki Dae
2017-08-07 22:55   ` Inki Dae
2017-08-08  3:21     ` Archit Taneja
2017-08-22  5:07       ` Archit Taneja
2017-08-18  7:42     ` Inki Dae

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=1499071350-25168-2-git-send-email-inki.dae@samsung.com \
    --to=inki.dae@samsung.com \
    --cc=daniel.vetter@intel.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.