Only once MODULE_ALIAS declaration is enough.
Columns are counted from 0 to n_cols - 1.
Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
- for (col = 0; col < n_cols + 1; col++) {
+ for (col = 0; col < n_cols; col++) {
int key;
if (!(changed & (1 << col)))
int key;
if (!(changed & (1 << col)))
MODULE_AUTHOR("Texas Instruments");
MODULE_DESCRIPTION("OMAP TWL4030 Keypad Driver");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Texas Instruments");
MODULE_DESCRIPTION("OMAP TWL4030 Keypad Driver");
MODULE_LICENSE("GPL");
-MODULE_ALIAS("platform:omap_twl4030keypad");