---
name: "struct_matrix_keypad_platform_data"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_matrix_keypad_platform_data"
---

# struct\_matrix\_keypad\_platform\_data(9)

platform-dependent keypad data

## NAME

struct\_matrix\_keypad\_platform\_data - platform-dependent keypad data

## SYNOPSIS

```
struct matrix_keypad_platform_data {
  const struct matrix_keymap_data * keymap_data;
  const unsigned int * row_gpios;
  const unsigned int * col_gpios;
  unsigned int num_row_gpios;
  unsigned int num_col_gpios;
  unsigned int col_scan_delay_us;
  unsigned int debounce_ms;
  unsigned int clustered_irq;
  unsigned int clustered_irq_flags;
  bool active_low;
  bool wakeup;
  bool no_autorepeat;
};
```

## MEMBERS

keymap\_data

pointer to matrix\_keymap\_data

row\_gpios

pointer to array of gpio numbers representing rows

col\_gpios

pointer to array of gpio numbers reporesenting colums

num\_row\_gpios

actual number of row gpios used by device

num\_col\_gpios

actual number of col gpios used by device

col\_scan\_delay\_us

delay, measured in microseconds, that is needed before we can keypad after activating column gpio

debounce\_ms

debounce interval in milliseconds

clustered\_irq

may be specified if interrupts of all row/column GPIOs are bundled to one single irq

clustered\_irq\_flags

flags that are needed for the clustered irq

active\_low

gpio polarity

wakeup

controls whether the device should be set up as wakeup source

no\_autorepeat

disable key autorepeat

## DESCRIPTION

This structure represents platform-specific data that use used by matrix\_keypad driver to perform proper initialization.

## COPYRIGHT
