All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom St Denis <tom.stdenis-5C7GfCeVMHo@public.gmane.org>
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: Tom St Denis <tom.stdenis-5C7GfCeVMHo@public.gmane.org>
Subject: [PATCH 5/6] drm/amd/display: Tidy up dce120_clock_source_create()
Date: Tue, 16 May 2017 10:22:04 -0400	[thread overview]
Message-ID: <20170516142205.468-6-tom.stdenis@amd.com> (raw)
In-Reply-To: <20170516142205.468-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>

Also change sizeof to be automatic based on type declaration.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
---
 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c b/drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c
index b6bdd1d52922..be9266b9be7f 100644
--- a/drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c
@@ -444,13 +444,13 @@ struct clock_source *dce120_clock_source_create(
 	bool dp_clk_src)
 {
 	struct dce110_clk_src *clk_src =
-		dm_alloc(sizeof(struct dce110_clk_src));
+		dm_alloc(sizeof(*clk_src));
 
 	if (!clk_src)
 		return NULL;
 
 	if (dce110_clk_src_construct(clk_src, ctx, bios, id,
-			regs, &cs_shift, &cs_mask)) {
+				     regs, &cs_shift, &cs_mask)) {
 		clk_src->base.dp_clk_src = dp_clk_src;
 		return &clk_src->base;
 	}
-- 
2.12.0

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2017-05-16 14:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-16 14:21 Various minor Display DCE120 cleanups Tom St Denis
     [not found] ` <20170516142205.468-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
2017-05-16 14:22   ` [PATCH 1/6] drm/amd/display: Tidy up dce120_timing_generator_enable_advanced_request() Tom St Denis
2017-05-16 14:22   ` [PATCH 2/6] drm/amd/display: Fix indentation in dce120_tg_program_timing() Tom St Denis
2017-05-16 14:22   ` [PATCH 3/6] drm/amd/display: Make dce120_tg_is_blanked() more legible Tom St Denis
2017-05-16 14:22   ` [PATCH 4/6] drm/amd/display: Clean up indentation in dce120_tg_set_blank() Tom St Denis
2017-05-16 14:22   ` Tom St Denis [this message]
2017-05-16 14:22   ` [PATCH 6/6] drm/amd/display: Tidy up mem_input_program_surface_flip_and_addr() Tom St Denis
     [not found]     ` <20170516142205.468-7-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
2017-05-23 15:17       ` Deucher, Alexander
     [not found]         ` <BN6PR12MB1652B96CB688DCD1A7507C6CF7F90-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-05-23 15:39           ` Harry Wentland

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=20170516142205.468-6-tom.stdenis@amd.com \
    --to=tom.stdenis-5c7gfcevmho@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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.