2012-06-13 14:57:39

by Axel Lin

[permalink] [raw]
Subject: [PATCH] regmap: mmio: Staticize regmap_mmio_gen_context()

regmap_mmio_gen_context() is only used in regmap-mmio.c. Thus make it static.

Signed-off-by: Axel Lin <[email protected]>
---
drivers/base/regmap/regmap-mmio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/regmap/regmap-mmio.c b/drivers/base/regmap/regmap-mmio.c
index eec8663..d64a7fc 100644
--- a/drivers/base/regmap/regmap-mmio.c
+++ b/drivers/base/regmap/regmap-mmio.c
@@ -128,7 +128,7 @@ static struct regmap_bus regmap_mmio = {
.val_format_endian_default = REGMAP_ENDIAN_NATIVE,
};

-struct regmap_mmio_context *regmap_mmio_gen_context(void __iomem *regs,
+static struct regmap_mmio_context *regmap_mmio_gen_context(void __iomem *regs,
const struct regmap_config *config)
{
struct regmap_mmio_context *ctx;
--
1.7.9.5



2012-06-13 16:01:04

by Stephen Warren

[permalink] [raw]
Subject: Re: [PATCH] regmap: mmio: Staticize regmap_mmio_gen_context()

On 06/13/2012 08:57 AM, Axel Lin wrote:
> regmap_mmio_gen_context() is only used in regmap-mmio.c. Thus make it static.
>
> Signed-off-by: Axel Lin <[email protected]>

Acked-by: Stephen Warren <[email protected]>

2012-06-13 18:09:46

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] regmap: mmio: Staticize regmap_mmio_gen_context()

On Wed, Jun 13, 2012 at 10:57:24PM +0800, Axel Lin wrote:
> regmap_mmio_gen_context() is only used in regmap-mmio.c. Thus make it static.

Applied, thanks.


Attachments:
(No filename) (156.00 B)
signature.asc (836.00 B)
Digital signature
Download all attachments