[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190116213059.GM15409@zn.tnic>
Date: Wed, 16 Jan 2019 22:30:59 +0100
From: Borislav Petkov <bp@...en8.de>
To: Stefan Schaeckeler <schaecsn@....net>
Cc: robh+dt@...nel.org, mark.rutland@....com, joel@....id.au,
andrew@...id.au, mchehab@...nel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-aspeed@...ts.ozlabs.org, linux-edac@...r.kernel.org,
sschaeck@...co.com
Subject: Re: [PATCH 1/2] EDAC: Add Aspeed AST2500 EDAC driver
On Tue, Jan 15, 2019 at 09:57:48AM -0800, Stefan Schaeckeler wrote:
> That's interesting. I did a grep over all 16944 GPL licensed files with an SPDX
> identifier.
>
> 785 of them have a license text while 16159 don't.
Goes to show that we're still in the process of converting stuff to SPDX.
> When stripping off aspeed_edac_, some static function names will become quite
> "bare-bone":
>
> aspeed_edac_init(), aspeed_edac_exit(), aspeed_edac_probe(),
> aspeed_edac_remove(), aspeed_edac_of_match(), aspeed_edac_isr(),
> aspeed_edac_config_irq().
So namespaced function names we normally use for globally visible
symbols and those are not but only driver-specific. So, for example,
aspeed_edac_config_irq()
is a mouthful, at least to me, and not needed. config_irq(), OTOH, is
clear at a very quick glance.
The others, aspeed_edac_init(), etc, you could call aspeed_init(),
aspeed_exit() or so.
But since you're going to be stare at that code, this was just a
suggestion. Your call. :)
> Does your suggestion also apply to static variables? E.g. aspeed_edac_regmap,
> aspeed_edac_regmap_config, aspeed_edac_driver? Also, here some variable names
> would become quite "bare-bone".
Same as above.
HTH.
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
Powered by blists - more mailing lists