Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5653a63d authored by Joe Perches's avatar Joe Perches Committed by John W. Linville
Browse files

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: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 07b2fa5a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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),
	};