Name

matrix_keypad_parse_of_params — Read parameters from matrix-keypad node

Synopsis

int matrix_keypad_parse_of_params (struct device * dev,
 unsigned int * rows,
 unsigned int * cols);
 

Arguments

dev

Device containing of_node

rows

Returns number of matrix rows

cols

Returns number of matrix columns return 0 if OK, <0 on error