diff options
author | Nelson Castillo <arhuaco@freaks-unidos.net> | 2009-03-10 12:04:26 +0000 |
---|---|---|
committer | Andy Green <agreen@octopus.localdomain> | 2009-03-10 12:04:26 +0000 |
commit | 25db5513242fb8d9fac0f461e110cc82d6b3f90f (patch) | |
tree | 2adeedac9d13da47f8093f04e4aa37b1f97aa905 /arch | |
parent | 9e58a18567ec1ef306ea7b973749e5cd9902702c (diff) |
Export symbols and make a few symbols constant.
~ Make a few symbols constant.
~ Export symbols explicitly.
~ Move ts_filter.c to ts_filter_chain.c (this will make sense later).
Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s3c2410/include/mach/ts.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-s3c2442/mach-gta02.c | 12 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/devs.c | 5 |
3 files changed, 11 insertions, 10 deletions
diff --git a/arch/arm/mach-s3c2410/include/mach/ts.h b/arch/arm/mach-s3c2410/include/mach/ts.h index 0600b306a34..41ac64cdd58 100644 --- a/arch/arm/mach-s3c2410/include/mach/ts.h +++ b/arch/arm/mach-s3c2410/include/mach/ts.h @@ -27,9 +27,9 @@ struct s3c2410_ts_mach_info { * Null-terminated array of pointers to filter APIs and configurations * we want to use. In the same order they will be applied. */ - struct ts_filter_configuration *filter_config; + const struct ts_filter_configuration *filter_config; }; -void set_s3c2410ts_info(struct s3c2410_ts_mach_info *hard_s3c2410ts_info); +void set_s3c2410ts_info(const struct s3c2410_ts_mach_info *hard_s3c2410ts_info); #endif /* __ASM_ARM_TS_H */ diff --git a/arch/arm/mach-s3c2442/mach-gta02.c b/arch/arm/mach-s3c2442/mach-gta02.c index 49cf09ee124..fa55aba1cba 100644 --- a/arch/arm/mach-s3c2442/mach-gta02.c +++ b/arch/arm/mach-s3c2442/mach-gta02.c @@ -952,32 +952,32 @@ static struct s3c2410_udc_mach_info gta02_udc_cfg = { /* Touchscreen configuration. */ #ifdef CONFIG_TOUCHSCREEN_FILTER -static struct ts_filter_group_configuration gta02_ts_group = { +const static struct ts_filter_group_configuration gta02_ts_group = { .length = 12, .close_enough = 10, .threshold = 6, /* At least half of the points in a group. */ .attempts = 10, }; -static struct ts_filter_median_configuration gta02_ts_median = { +const static struct ts_filter_median_configuration gta02_ts_median = { .extent = 20, .decimation_below = 3, .decimation_threshold = 8 * 3, .decimation_above = 4, }; -static struct ts_filter_mean_configuration gta02_ts_mean = { +const static struct ts_filter_mean_configuration gta02_ts_mean = { .length = 4, }; -static struct ts_filter_linear_configuration gta02_ts_linear = { +const static struct ts_filter_linear_configuration gta02_ts_linear = { .constants = {1, 0, 0, 0, 1, 0, 1}, /* Don't modify coords. */ .coord0 = 0, .coord1 = 1, }; #endif -struct ts_filter_configuration filter_configuration[] = +const struct ts_filter_configuration filter_configuration[] = { #ifdef CONFIG_TOUCHSCREEN_FILTER {&ts_filter_group_api, >a02_ts_group.config}, @@ -988,7 +988,7 @@ struct ts_filter_configuration filter_configuration[] = {NULL, NULL}, }; -static struct s3c2410_ts_mach_info gta02_ts_cfg = { +const static struct s3c2410_ts_mach_info gta02_ts_cfg = { .delay = 10000, .presc = 0xff, /* slow as we can go */ .filter_config = filter_configuration, diff --git a/arch/arm/plat-s3c24xx/devs.c b/arch/arm/plat-s3c24xx/devs.c index fbba93d61c1..0fdaa54ada9 100644 --- a/arch/arm/plat-s3c24xx/devs.c +++ b/arch/arm/plat-s3c24xx/devs.c @@ -211,9 +211,10 @@ EXPORT_SYMBOL(s3c_device_ts); static struct s3c2410_ts_mach_info s3c2410ts_info; -void set_s3c2410ts_info(struct s3c2410_ts_mach_info *hard_s3c2410ts_info) +void set_s3c2410ts_info(const struct s3c2410_ts_mach_info *hard_s3c2410ts_info) { - memcpy(&s3c2410ts_info,hard_s3c2410ts_info,sizeof(struct s3c2410_ts_mach_info)); + memcpy(&s3c2410ts_info, hard_s3c2410ts_info, + sizeof(struct s3c2410_ts_mach_info)); s3c_device_ts.dev.platform_data = &s3c2410ts_info; } EXPORT_SYMBOL(set_s3c2410ts_info); |