Input: tegra-kbc - remove pre Tegra20 definitions
Subsystems (4)
PATCH 1/1 Input: tegra-kbc - remove pre Tegra20 definitions
Add support for Tegra30 by correcting definitions. This is necessary to make driver useful in Tegra30.
--- arch/arm/mach-tegra/include/mach/kbc.h | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-)
arch/arm/mach-tegra/include/mach/kbc.h +0 -5
@@ -24,13 +24,8 @@#include <linux/types.h> #include <linux/input/matrix_keypad.h> -#ifdef CONFIG_ARCH_TEGRA_2x_SOC#define KBC_MAX_GPIO 24#define KBC_MAX_KPENT 8 -#else -#define KBC_MAX_GPIO 20 -#define KBC_MAX_KPENT 7 -#endif #define KBC_MAX_ROW 16#define KBC_MAX_COL 8
Signature · 1 line
1.7.4.1
Quoted 2 lines · Rakesh Iyer
Add support for Tegra30 by correcting definitions. This is necessary to make driver useful in Tegra30.
So what about older versions? There still could be users...
Quoted 27 lines
Signed-off-by Rakesh Iyer <[email protected]>--- arch/arm/mach-tegra/include/mach/kbc.h | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-)arch/arm/mach-tegra/include/mach/kbc.h +0
-5@@ -24,13 +24,8 @@#include <linux/types.h> #include <linux/input/matrix_keypad.h> -#ifdef CONFIG_ARCH_TEGRA_2x_SOC#define KBC_MAX_GPIO 24#define KBC_MAX_KPENT 8 -#else -#define KBC_MAX_GPIO 20 -#define KBC_MAX_KPENT 7 -#endif #define KBC_MAX_ROW 16#define KBC_MAX_COL 8Signature · 1 line
1.7.4.1
Signature · 1 line
Dmitry
Dmitry Torokhov wrote at Tuesday, January 17, 2012 5:30 PM:
Quoted 5 lines · Rakesh Iyer
Quoted 2 lines
Add support for Tegra30 by correcting definitions. This is necessary to make driver useful in Tegra30.
So what about older versions? There still could be users...
I wonder if there will be problems with this patch; the loop in tegra_kbc_report_keys() is going to process 8 bits more of the last register and the loop in tegra_kbc_config_pins() will now touch one more row and one more column register. I think these loops should be limited at run-time based on the SoC actually being executed upon?
Signature · 1 line
nvpublic
Stephen Warren
Acked-byStephen Warren wrote at Wednesday, January 18, 2012 9:36 AM:
Quoted 5 lines
Dmitry Torokhov wrote at Tuesday, January 17, 2012 5:30 PM:
Quoted 4 lines · Rakesh Iyer
Quoted 2 lines
Add support for Tegra30 by correcting definitions. This is necessary to make driver useful in Tegra30.
Quoted 7 lines
Quoted 1 line
So what about older versions? There still could be users...
I wonder if there will be problems with this patch; the loop in
tegra_kbc_report_keys()is going to process 8 bits more of the last register and the loop integra_kbc_config_pins()will now touch one more row and one more column register. I think these loops should be limited at run-time based on the SoC actually being executed upon?
Sorry, I read the ifdef the wrong way around. The new values are for Tegra20 and should have been in use all along. There are no old versions to consider here, since chips before Tegra20 aren't supported by mainline (or any??) Linux.
So,
Sorry for the confusion.
Signature · 1 line
nvpublic