linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] clk: s3c2410: Staticize local symbols
@ 2015-05-01 16:02 Krzysztof Kozlowski
  2015-05-01 16:02 ` [PATCH 2/2] clk: s3c2410: Constify platform_device_id Krzysztof Kozlowski
  2015-05-06  5:54 ` [PATCH 1/2] clk: s3c2410: Staticize local symbols Stephen Boyd
  0 siblings, 2 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 16:02 UTC (permalink / raw)
  To: Kukjin Kim, Sylwester Nawrocki, Tomasz Figa, Mike Turquette,
	Stephen Boyd, linux-arm-kernel, linux-samsung-soc, linux-clk,
	linux-kernel
  Cc: Krzysztof Kozlowski

Staticize symbols not exported and not used outside of file.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
 drivers/clk/samsung/clk-s3c2410-dclk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/samsung/clk-s3c2410-dclk.c b/drivers/clk/samsung/clk-s3c2410-dclk.c
index f4f29ed6bd25..db6fddb211d4 100644
--- a/drivers/clk/samsung/clk-s3c2410-dclk.c
+++ b/drivers/clk/samsung/clk-s3c2410-dclk.c
@@ -81,13 +81,13 @@ static int s3c24xx_clkout_set_parent(struct clk_hw *hw, u8 index)
 	return ret;
 }
 
-const struct clk_ops s3c24xx_clkout_ops = {
+static const struct clk_ops s3c24xx_clkout_ops = {
 	.get_parent = s3c24xx_clkout_get_parent,
 	.set_parent = s3c24xx_clkout_set_parent,
 	.determine_rate = __clk_mux_determine_rate,
 };
 
-struct clk *s3c24xx_register_clkout(struct device *dev, const char *name,
+static struct clk *s3c24xx_register_clkout(struct device *dev, const char *name,
 		const char **parent_names, u8 num_parents,
 		u8 shift, u32 mask)
 {
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] clk: s3c2410: Constify platform_device_id
  2015-05-01 16:02 [PATCH 1/2] clk: s3c2410: Staticize local symbols Krzysztof Kozlowski
@ 2015-05-01 16:02 ` Krzysztof Kozlowski
  2015-05-06  5:55   ` Stephen Boyd
  2015-05-06  5:54 ` [PATCH 1/2] clk: s3c2410: Staticize local symbols Stephen Boyd
  1 sibling, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 16:02 UTC (permalink / raw)
  To: Kukjin Kim, Sylwester Nawrocki, Tomasz Figa, Mike Turquette,
	Stephen Boyd, linux-arm-kernel, linux-samsung-soc, linux-clk,
	linux-kernel
  Cc: Krzysztof Kozlowski

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
 drivers/clk/samsung/clk-s3c2410-dclk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/samsung/clk-s3c2410-dclk.c b/drivers/clk/samsung/clk-s3c2410-dclk.c
index db6fddb211d4..e56df5064889 100644
--- a/drivers/clk/samsung/clk-s3c2410-dclk.c
+++ b/drivers/clk/samsung/clk-s3c2410-dclk.c
@@ -404,7 +404,7 @@ static struct s3c24xx_dclk_drv_data dclk_variants[] = {
 	},
 };
 
-static struct platform_device_id s3c24xx_dclk_driver_ids[] = {
+static const struct platform_device_id s3c24xx_dclk_driver_ids[] = {
 	{
 		.name		= "s3c2410-dclk",
 		.driver_data	= (kernel_ulong_t)&dclk_variants[S3C2410],
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] clk: s3c2410: Staticize local symbols
  2015-05-01 16:02 [PATCH 1/2] clk: s3c2410: Staticize local symbols Krzysztof Kozlowski
  2015-05-01 16:02 ` [PATCH 2/2] clk: s3c2410: Constify platform_device_id Krzysztof Kozlowski
@ 2015-05-06  5:54 ` Stephen Boyd
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2015-05-06  5:54 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Kukjin Kim, Sylwester Nawrocki, Tomasz Figa, Mike Turquette,
	linux-arm-kernel, linux-samsung-soc, linux-clk, linux-kernel

On 05/02, Krzysztof Kozlowski wrote:
> Staticize symbols not exported and not used outside of file.
> 
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] clk: s3c2410: Constify platform_device_id
  2015-05-01 16:02 ` [PATCH 2/2] clk: s3c2410: Constify platform_device_id Krzysztof Kozlowski
@ 2015-05-06  5:55   ` Stephen Boyd
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2015-05-06  5:55 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Kukjin Kim, Sylwester Nawrocki, Tomasz Figa, Mike Turquette,
	linux-arm-kernel, linux-samsung-soc, linux-clk, linux-kernel

On 05/02, Krzysztof Kozlowski wrote:
> The platform_device_id is not modified by the driver and core uses it as
> const.
> 
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
> ---

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-06  5:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-01 16:02 [PATCH 1/2] clk: s3c2410: Staticize local symbols Krzysztof Kozlowski
2015-05-01 16:02 ` [PATCH 2/2] clk: s3c2410: Constify platform_device_id Krzysztof Kozlowski
2015-05-06  5:55   ` Stephen Boyd
2015-05-06  5:54 ` [PATCH 1/2] clk: s3c2410: Staticize local symbols Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).