Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179302
b: refs/heads/master
c: 861a644
h: refs/heads/master
v: v3
  • Loading branch information
Miguel Aguilar authored and Dmitry Torokhov committed Jan 6, 2010
1 parent 6aa91f4 commit 08587b6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30a589fde0162aa4dac7c69803aeee8fbe8d1b82
refs/heads/master: 861a64428c0786a5cfa2ffb36b2f8058dea5dda0
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-davinci/include/mach/keyscan.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ enum davinci_matrix_types {
};

struct davinci_ks_platform_data {
int (*device_enable)(struct device *dev);
unsigned short *keymap;
u32 keymapsize;
u8 rep:1;
Expand Down
8 changes: 8 additions & 0 deletions trunk/drivers/input/keyboard/davinci_keyscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,14 @@ static int __init davinci_ks_probe(struct platform_device *pdev)
struct davinci_ks_platform_data *pdata = pdev->dev.platform_data;
int error, i;

if (pdata->device_enable) {
error = pdata->device_enable(dev);
if (error < 0) {
dev_dbg(dev, "device enable function failed\n");
return error;
}
}

if (!pdata->keymap) {
dev_dbg(dev, "no keymap from pdata\n");
return -EINVAL;
Expand Down

0 comments on commit 08587b6

Please sign in to comment.