diff options
| author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-05-21 03:52:16 -0400 |
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-05-21 03:52:16 -0400 |
| commit | e1b73cba13a0cc68dd4f746eced15bd6bb24cda4 (patch) | |
| tree | b1c9e10730724024a700031ad56c20419dabb500 /include/linux/input/matrix_keypad.h | |
| parent | 98304ad186296dc1e655399e28d5973c21db6a73 (diff) | |
| parent | c7788792a5e7b0d5d7f96d0766b4cb6112d47d75 (diff) | |
Merge tag 'v3.10-rc2' into drm-intel-next-queued
Backmerge Linux 3.10-rc2 since the various (rather trivial) conflicts
grew a bit out of hand. intel_dp.c has the only real functional
conflict since the logic changed while dev_priv->edp.bpp was moved
around.
Also squash in a whitespace fixup from Ben Widawsky for
i915_gem_gtt.c, git seems to do something pretty strange in there
(which I don't fully understand tbh).
Conflicts:
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_dp.c
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/linux/input/matrix_keypad.h')
| -rw-r--r-- | include/linux/input/matrix_keypad.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/input/matrix_keypad.h b/include/linux/input/matrix_keypad.h index 5f3aa6b11bfa..27e06acc509a 100644 --- a/include/linux/input/matrix_keypad.h +++ b/include/linux/input/matrix_keypad.h | |||
| @@ -81,4 +81,23 @@ int matrix_keypad_build_keymap(const struct matrix_keymap_data *keymap_data, | |||
| 81 | unsigned short *keymap, | 81 | unsigned short *keymap, |
| 82 | struct input_dev *input_dev); | 82 | struct input_dev *input_dev); |
| 83 | 83 | ||
| 84 | #ifdef CONFIG_OF | ||
| 85 | /** | ||
| 86 | * matrix_keypad_parse_of_params() - Read parameters from matrix-keypad node | ||
| 87 | * | ||
| 88 | * @dev: Device containing of_node | ||
| 89 | * @rows: Returns number of matrix rows | ||
| 90 | * @cols: Returns number of matrix columns | ||
| 91 | * @return 0 if OK, <0 on error | ||
| 92 | */ | ||
| 93 | int matrix_keypad_parse_of_params(struct device *dev, | ||
| 94 | unsigned int *rows, unsigned int *cols); | ||
| 95 | #else | ||
| 96 | static inline int matrix_keypad_parse_of_params(struct device *dev, | ||
| 97 | unsigned int *rows, unsigned int *cols) | ||
| 98 | { | ||
| 99 | return -ENOSYS; | ||
| 100 | } | ||
| 101 | #endif /* CONFIG_OF */ | ||
| 102 | |||
| 84 | #endif /* _MATRIX_KEYPAD_H */ | 103 | #endif /* _MATRIX_KEYPAD_H */ |
