diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-11-11 12:43:12 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-31 11:31:48 -0800 |
commit | aef01aad89e457e34a60ff6e8fd69ff6740cf201 (patch) | |
tree | a1a02536fd46b11f05e8e804f018b8384068e45a /drivers/input/keyboard/twl4030_keypad.c | |
parent | b1fe0cf06f92ff8ebe77959810ec3ff2555ff56c (diff) | |
download | lwn-aef01aad89e457e34a60ff6e8fd69ff6740cf201.tar.gz lwn-aef01aad89e457e34a60ff6e8fd69ff6740cf201.zip |
Input: matrix-keypad - switch to using generic device properties
Instead of being OF-specific, let's switch to using generic device
properties, which will make this code usable on ACPI, device tree and
legacy boards that use property sets.
As part of the change let's rename matrix_keypad_parse_of_params() to
matrix_keypad_parse_properties().
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/keyboard/twl4030_keypad.c')
-rw-r--r-- | drivers/input/keyboard/twl4030_keypad.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/keyboard/twl4030_keypad.c b/drivers/input/keyboard/twl4030_keypad.c index 29396ca69416..39e72b3219d8 100644 --- a/drivers/input/keyboard/twl4030_keypad.c +++ b/drivers/input/keyboard/twl4030_keypad.c @@ -374,8 +374,8 @@ static int twl4030_kp_probe(struct platform_device *pdev) kp->autorepeat = pdata->rep; keymap_data = pdata->keymap_data; } else { - error = matrix_keypad_parse_of_params(&pdev->dev, &kp->n_rows, - &kp->n_cols); + error = matrix_keypad_parse_properties(&pdev->dev, &kp->n_rows, + &kp->n_cols); if (error) return error; |