]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mfd: Allow for const stmpe keyboard data
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 23 Apr 2012 12:28:44 +0000 (14:28 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 9 May 2012 15:20:29 +0000 (17:20 +0200)
Since it's not like we will re-arrange the keys at run-time, it
seems proper to allow the keymap data to be const. This solves
a compilation warning in ux500.

Cc: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
include/linux/mfd/stmpe.h

index 8516fd1eaabc7882127d269bf4db58366e93bb57..f8d5b4d5843fc02ad7728c207992d0b33ac0c5a7 100644 (file)
@@ -117,7 +117,7 @@ struct matrix_keymap_data;
  * @no_autorepeat: disable key autorepeat
  */
 struct stmpe_keypad_platform_data {
-       struct matrix_keymap_data *keymap_data;
+       const struct matrix_keymap_data *keymap_data;
        unsigned int debounce_ms;
        unsigned int scan_count;
        bool no_autorepeat;