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>
This commit is contained in:
@@ -145,7 +145,7 @@ static int lpc32xx_parse_dt(struct device *dev,
|
||||
u32 rows = 0, columns = 0;
|
||||
int err;
|
||||
|
||||
err = matrix_keypad_parse_of_params(dev, &rows, &columns);
|
||||
err = matrix_keypad_parse_properties(dev, &rows, &columns);
|
||||
if (err)
|
||||
return err;
|
||||
if (rows != columns) {
|
||||
|
Reference in New Issue
Block a user