Lines Matching full:plat
325 struct tc3589x_keypad_platform_data *plat; in tc3589x_keypad_of_probe() local
332 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in tc3589x_keypad_of_probe()
333 if (!plat) in tc3589x_keypad_of_probe()
338 plat->kcol = (u8) cols; in tc3589x_keypad_of_probe()
339 plat->krow = (u8) rows; in tc3589x_keypad_of_probe()
340 if (!plat->krow || !plat->kcol || in tc3589x_keypad_of_probe()
341 plat->krow > TC_KPD_ROWS || plat->kcol > TC_KPD_COLUMNS) { in tc3589x_keypad_of_probe()
344 plat->kcol, plat->krow); in tc3589x_keypad_of_probe()
353 plat->no_autorepeat = of_property_read_bool(np, "linux,no-autorepeat"); in tc3589x_keypad_of_probe()
355 plat->enable_wakeup = of_property_read_bool(np, "wakeup-source") || in tc3589x_keypad_of_probe()
362 plat->debounce_period = debounce_ms * 16; in tc3589x_keypad_of_probe()
364 plat->debounce_period = TC_KPD_DEBOUNCE_PERIOD; in tc3589x_keypad_of_probe()
366 plat->settle_time = TC_KPD_SETTLE_TIME; in tc3589x_keypad_of_probe()
368 plat->irqtype = IRQF_TRIGGER_FALLING; in tc3589x_keypad_of_probe()
370 return plat; in tc3589x_keypad_of_probe()
378 const struct tc3589x_keypad_platform_data *plat; in tc3589x_keypad_probe() local
381 plat = tc3589x_keypad_of_probe(&pdev->dev); in tc3589x_keypad_probe()
382 if (IS_ERR(plat)) { in tc3589x_keypad_probe()
384 return PTR_ERR(plat); in tc3589x_keypad_probe()
402 keypad->board = plat; in tc3589x_keypad_probe()
413 error = matrix_keypad_build_keymap(plat->keymap_data, NULL, in tc3589x_keypad_probe()
424 if (!plat->no_autorepeat) in tc3589x_keypad_probe()
433 plat->irqtype | IRQF_ONESHOT, in tc3589x_keypad_probe()
449 device_init_wakeup(&pdev->dev, plat->enable_wakeup); in tc3589x_keypad_probe()
450 device_set_wakeup_capable(&pdev->dev, plat->enable_wakeup); in tc3589x_keypad_probe()