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 /drivers/input/touchscreen/ts_filter.h | |
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 'drivers/input/touchscreen/ts_filter.h')
-rw-r--r-- | drivers/input/touchscreen/ts_filter.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/input/touchscreen/ts_filter.h b/drivers/input/touchscreen/ts_filter.h index 630ea51aa78..0e4704f255a 100644 --- a/drivers/input/touchscreen/ts_filter.h +++ b/drivers/input/touchscreen/ts_filter.h @@ -18,9 +18,10 @@ struct ts_filter_configuration; struct ts_filter_api { /* Create the filter - mandatory. */ - struct ts_filter * (*create)(struct platform_device *pdev, - struct ts_filter_configuration *config, - int count_coords); + struct ts_filter * (*create)( + struct platform_device *pdev, + const struct ts_filter_configuration *config, + int count_coords); /* Destroy the filter - mandatory. */ void (*destroy)(struct ts_filter *filter); /* Clear the filter - optional. */ @@ -62,14 +63,14 @@ struct ts_filter_api { */ struct ts_filter_configuration { /* API to use */ - struct ts_filter_api *api; + const struct ts_filter_api *api; /* Generic filter configuration. Different for each filter. */ - struct ts_filter_configuration *config; + const struct ts_filter_configuration *config; }; struct ts_filter { /* Operations for this filter. */ - struct ts_filter_api *api; + const struct ts_filter_api *api; /* Number of coordinates to process. */ int count_coords; }; @@ -82,7 +83,7 @@ struct ts_filter { */ extern struct ts_filter **ts_filter_chain_create( struct platform_device *pdev, - struct ts_filter_configuration conf[], + const struct ts_filter_configuration conf[], int count_coords); /* Helper to destroy a whole chain from the list of filter pointers. */ |