/* * linux/drivers/video/s3c2410fb.h * Copyright (c) 2004 Arnaud Patard * * S3C2410 LCD Framebuffer Driver * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive for * more details. * */ #ifndef __S3C2410FB_H #define __S3C2410FB_H enum s3c_drv_type { DRV_S3C2410, DRV_S3C2412, }; struct s3c2410fb_info { struct device *dev; struct clk *clk; struct resource *mem; void __iomem *io; void __iomem *irq_base; enum s3c_drv_type drv_type; struct s3c2410fb_hw regs; unsigned long clk_rate; unsigned int palette_ready; #ifdef CONFIG_ARM_S3C24XX_CPUFREQ struct notifier_block freq_transition; #endif /* keep these registers in case we need to re-write palette */ u32 palette_buffer[256]; u32 pseudo_pal[16]; }; #define PALETTE_BUFF_CLEAR (0x80000000) /* entry is clear/invalid */ int s3c2410fb_init(void); #endif ut type='hidden' name='id' value='10eeb5e645b5332b24986a554046f6c9cc2c22d4'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/include/uapi/asm-generic
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-01-21 12:28:58 +0530
committerDavid S. Miller <davem@davemloft.net>2017-01-23 15:58:49 -0500
commit10eeb5e645b5332b24986a554046f6c9cc2c22d4 (patch)
treeb40cfad424001399db8abf46ba4a0958df054a89 /include/uapi/asm-generic
parent30bd2f52e56ea35028cf1d13c21484918b6ff22d (diff)
net: xilinx: constify net_device_ops structure
Declare net_device_ops structure as const as it is only stored in the netdev_ops field of a net_device structure. This field is of type const, so net_device_ops structures having same properties can be made const too. Done using Coccinelle: @r1 disable optional_qualifier@ identifier i; position p; @@ static struct net_device_ops i@p={...}; @ok1@ identifier r1.i; position p; struct net_device ndev; @@ ndev.netdev_ops=&i@p @bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p @depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct net_device_ops i; File size before: text data bss dec hex filename 6201 744 0 6945 1b21 ethernet/xilinx/xilinx_emaclite.o File size after: text data bss dec hex filename 6745 192 0 6937 1b19 ethernet/xilinx/xilinx_emaclite.o Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/asm-generic')