drivers: kscan: Extend callback arguments to 32-bits
Extends the keyboard scan callback row and column arguments from 8-bits to 32-bits to support a touch panel driver implementation. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
46f98d86c7
commit
5a330f9b36
3 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ extern "C" {
|
|||
* @param row Describes row change.
|
||||
* @param pressed Describes the kind of key event.
|
||||
*/
|
||||
typedef void (*kscan_callback_t)(struct device *dev, u8_t row, u8_t column,
|
||||
typedef void (*kscan_callback_t)(struct device *dev, u32_t row, u32_t column,
|
||||
bool pressed);
|
||||
|
||||
/**
|
||||
|
|
|
@ -120,7 +120,7 @@ static void typematic_callback(struct k_timer *timer)
|
|||
LOG_INF("Typematic : %u\n", last_key);
|
||||
}
|
||||
|
||||
static void kb_callback(struct device *dev, u8_t row, u8_t col, bool pressed)
|
||||
static void kb_callback(struct device *dev, u32_t row, u32_t col, bool pressed)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
last_key = keymap[col][row];
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#define KSCAN_DEV_NAME DT_KSCAN_0_NAME
|
||||
#endif
|
||||
|
||||
static void kb_callback(struct device *dev, u8_t row, u8_t col, bool pressed)
|
||||
static void kb_callback(struct device *dev, u32_t row, u32_t col, bool pressed)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
ARG_UNUSED(row);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue