aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorNelson Castillo <arhuaco@freaks-unidos.net>2009-04-15 00:21:33 -0500
committerNelson Castillo <arhuaco@freaks-unidos.net>2009-04-15 00:24:30 -0500
commit9a690f4a8733bbeeba62ff28ae38ff7f869e4b05 (patch)
tree40fa06ced68c5421c1637582350aa4e1f7f69bca /arch
parent83052807ac3346706954554ec7e3a3a443f2e881 (diff)
make touchscreen filter symbols const static in mach-gta01.c and mach-gta02.c
Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-s3c2410/mach-gta01.c12
-rw-r--r--arch/arm/mach-s3c2442/mach-gta02.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-s3c2410/mach-gta01.c b/arch/arm/mach-s3c2410/mach-gta01.c
index ec7b1de7da9..bddba990a74 100644
--- a/arch/arm/mach-s3c2410/mach-gta01.c
+++ b/arch/arm/mach-s3c2410/mach-gta01.c
@@ -708,32 +708,32 @@ static struct s3c2410_udc_mach_info gta01_udc_cfg = {
/* Touchscreen configuration. */
#ifdef CONFIG_TOUCHSCREEN_FILTER
-static struct ts_filter_group_configuration gta01_ts_group = {
+const static struct ts_filter_group_configuration gta01_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 gta01_ts_median = {
+const static struct ts_filter_median_configuration gta01_ts_median = {
.extent = 20,
.decimation_below = 3,
.decimation_threshold = 8 * 3,
.decimation_above = 4,
};
-static struct ts_filter_mean_configuration gta01_ts_mean = {
+const static struct ts_filter_mean_configuration gta01_ts_mean = {
.length = 4,
};
-static struct ts_filter_linear_configuration gta01_ts_linear = {
+const static struct ts_filter_linear_configuration gta01_ts_linear = {
.constants = {1, 0, 0, 0, 1, 0, 1}, /* Don't modify coords. */
.coord0 = 0,
.coord1 = 1,
};
#endif
-struct ts_filter_chain_configuration gta01_filter_configuration[] =
+const static struct ts_filter_chain_configuration gta01_filter_configuration[] =
{
#ifdef CONFIG_TOUCHSCREEN_FILTER
{&ts_filter_group_api, &gta01_ts_group.config},
@@ -744,7 +744,7 @@ struct ts_filter_chain_configuration gta01_filter_configuration[] =
{NULL, NULL},
};
-static struct s3c2410_ts_mach_info gta01_ts_cfg = {
+const static struct s3c2410_ts_mach_info gta01_ts_cfg = {
.delay = 10000,
.presc = 0xff, /* slow as we can go */
.filter_config = gta01_filter_configuration,
diff --git a/arch/arm/mach-s3c2442/mach-gta02.c b/arch/arm/mach-s3c2442/mach-gta02.c
index db2f1704c69..079a2cc13b7 100644
--- a/arch/arm/mach-s3c2442/mach-gta02.c
+++ b/arch/arm/mach-s3c2442/mach-gta02.c
@@ -986,7 +986,7 @@ const static struct ts_filter_linear_configuration gta02_ts_linear = {
};
#endif
-const struct ts_filter_chain_configuration gta02_filter_configuration[] =
+const static struct ts_filter_chain_configuration gta02_filter_configuration[] =
{
#ifdef CONFIG_TOUCHSCREEN_FILTER
{&ts_filter_group_api, &gta02_ts_group.config},