From: Joe Perches Date: Sun, 21 Nov 2010 02:38:54 +0000 (-0800) Subject: carl9170: Use static const X-Git-Tag: v2.6.38-rc1~476^2~169^2^2~210 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5653a63d85300dbed71b76ab7ada03808bdfb170;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git carl9170: Use static const Using static const generally increases object text and decreases data size. It also generally decreases overall object size. text data bss dec hex filename 1897 56 672 2625 a41 drivers/net/wireless/ath/carl9170/cmd.o.new 1897 56 672 2625 a41 drivers/net/wireless/ath/carl9170/cmd.o.old Signed-off-by: Joe Perches Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/carl9170/cmd.c b/drivers/net/wireless/ath/carl9170/cmd.c index c21f336..cdfc94c 100644 --- a/drivers/net/wireless/ath/carl9170/cmd.c +++ b/drivers/net/wireless/ath/carl9170/cmd.c @@ -41,7 +41,7 @@ int carl9170_write_reg(struct ar9170 *ar, const u32 reg, const u32 val) { - __le32 buf[2] = { + const __le32 buf[2] = { cpu_to_le32(reg), cpu_to_le32(val), };