Hi Olof,
On Tue, Jan 3, 2012 at 2:37 PM, Stephen Warren [off-list ref] wrote:
Olof Johansson wrote at Tuesday, January 03, 2012 2:37 PM:
quoted
This adds a simple device tree binding for simple key matrix data and
a helper to fill in the platform data.
The implementation is in a shared file outside if drivers/input/keyboard
since some drivers in drivers/input/misc might be making use of it
as well.
Changes since v3:
* Dropped compatible field in matrix-keymap.txt
* Dropped linux,fn-key
* Dropped linux,fn-keymap optional property but included guideline on
naming convention
* Now passing property name in to the helper function (or will assume
"linux,keymap" if passed NULL)
quoted
diff --git a/drivers/input/of_keymap.c b/drivers/input/of_keymap.c
quoted
+struct matrix_keymap_data *
+matrix_keyboard_of_fill_keymap(struct device_node *np, char *propname)
+{
...
quoted
+ kd = kmalloc(sizeof(*kd), GFP_KERNEL);
+ if (!kd)
+ return NULL;
Should that use kzalloc in case struct matrix_keymap_data grows some
new fields that people will assume are set to zero since the struct
would usually be in .data? Still, people should probably grep the code
when making such changes...
Otherwise,
Acked-by: Stephen Warren <redacted>
Do you have a Tegra .dts binding for the Seaboard keyboard that I can
test with please?
Regards,
Simon
--
nvpublic
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html