* [PATCH] mfd/stmpe: allow for const keyboard data
@ 2012-04-23 12:28 Linus Walleij
2012-05-09 14:55 ` Samuel Ortiz
0 siblings, 1 reply; 2+ messages in thread
From: Linus Walleij @ 2012-04-23 12:28 UTC (permalink / raw)
To: Samuel Ortiz, linux-kernel; +Cc: Linus Walleij, Dmitry Torokhov
From: Linus Walleij <linus.walleij@linaro.org>
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>
---
include/linux/mfd/stmpe.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/mfd/stmpe.h b/include/linux/mfd/stmpe.h
index 8516fd1..f8d5b4d 100644
--- a/include/linux/mfd/stmpe.h
+++ b/include/linux/mfd/stmpe.h
@@ -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;
--
1.7.9.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mfd/stmpe: allow for const keyboard data
2012-04-23 12:28 [PATCH] mfd/stmpe: allow for const keyboard data Linus Walleij
@ 2012-05-09 14:55 ` Samuel Ortiz
0 siblings, 0 replies; 2+ messages in thread
From: Samuel Ortiz @ 2012-05-09 14:55 UTC (permalink / raw)
To: Linus Walleij; +Cc: linux-kernel, Linus Walleij, Dmitry Torokhov
Hi Linus,
On Mon, Apr 23, 2012 at 02:28:44PM +0200, Linus Walleij wrote:
> From: Linus Walleij <linus.walleij@linaro.org>
>
> 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>
> ---
> include/linux/mfd/stmpe.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied, thanks.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-09 14:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-23 12:28 [PATCH] mfd/stmpe: allow for const keyboard data Linus Walleij
2012-05-09 14:55 ` Samuel Ortiz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).