Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1664415 > unrolled thread

[PATCH] reset: zx2967: constify zx2967_reset_ops.

Started byArvind Yadav <arvind.yadav.cs@gmail.com>
First post2017-06-13 07:00 +0200
Last post2017-06-19 14:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] reset: zx2967: constify zx2967_reset_ops. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-06-13 07:00 +0200
    Re: [PATCH] reset: zx2967: constify zx2967_reset_ops. Philipp Zabel <p.zabel@pengutronix.de> - 2017-06-19 14:20 +0200

#1664415 — [PATCH] reset: zx2967: constify zx2967_reset_ops.

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-06-13 07:00 +0200
Subject[PATCH] reset: zx2967: constify zx2967_reset_ops.
Message-ID<tRM5P-3sH-5@gated-at.bofh.it>
File size before:
   text	   data	    bss	    dec	    hex	filename
    794	    232	      0	   1026	    402	drivers/reset/reset-zx2967.o

File size After adding 'const':
   text	   data	    bss	    dec	    hex	filename
    842	    184	      0	   1026	    402	drivers/reset/reset-zx2967.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
 drivers/reset/reset-zx2967.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/reset/reset-zx2967.c b/drivers/reset/reset-zx2967.c
index 4dabb9e..4f319f7 100644
--- a/drivers/reset/reset-zx2967.c
+++ b/drivers/reset/reset-zx2967.c
@@ -55,7 +55,7 @@ static int zx2967_reset_deassert(struct reset_controller_dev *rcdev,
 	return zx2967_reset_act(rcdev, id, false);
 }
 
-static struct reset_control_ops zx2967_reset_ops = {
+static const struct reset_control_ops zx2967_reset_ops = {
 	.assert		= zx2967_reset_assert,
 	.deassert	= zx2967_reset_deassert,
 };
-- 
1.9.1

[toc] | [next] | [standalone]


#1669027

FromPhilipp Zabel <p.zabel@pengutronix.de>
Date2017-06-19 14:20 +0200
Message-ID<tU3OW-2xn-25@gated-at.bofh.it>
In reply to#1664415
On Tue, 2017-06-13 at 10:22 +0530, Arvind Yadav wrote:
> File size before:
>    text	   data	    bss	    dec	    hex	filename
>     794	    232	      0	   1026	    402	drivers/reset/reset-zx2967.o
> 
> File size After adding 'const':
>    text	   data	    bss	    dec	    hex	filename
>     842	    184	      0	   1026	    402	drivers/reset/reset-zx2967.o
> 
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>

Applied to reset/next, thank you.

regards
Philipp

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web