Lines Matching refs:plat

325 	struct tc3589x_keypad_platform_data *plat;  in tc3589x_keypad_of_probe()  local
333 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in tc3589x_keypad_of_probe()
334 if (!plat) in tc3589x_keypad_of_probe()
339 plat->kcol = (u8) cols; in tc3589x_keypad_of_probe()
340 plat->krow = (u8) rows; in tc3589x_keypad_of_probe()
341 if (!plat->krow || !plat->kcol || in tc3589x_keypad_of_probe()
342 plat->krow > TC_KPD_ROWS || plat->kcol > TC_KPD_COLUMNS) { in tc3589x_keypad_of_probe()
345 plat->kcol, plat->krow); in tc3589x_keypad_of_probe()
354 plat->no_autorepeat = of_property_read_bool(np, "linux,no-autorepeat"); in tc3589x_keypad_of_probe()
356 plat->enable_wakeup = of_property_read_bool(np, "wakeup-source") || in tc3589x_keypad_of_probe()
363 plat->debounce_period = debounce_ms * 16; in tc3589x_keypad_of_probe()
365 plat->debounce_period = TC_KPD_DEBOUNCE_PERIOD; in tc3589x_keypad_of_probe()
367 plat->settle_time = TC_KPD_SETTLE_TIME; in tc3589x_keypad_of_probe()
369 plat->irqtype = IRQF_TRIGGER_FALLING; in tc3589x_keypad_of_probe()
371 return plat; in tc3589x_keypad_of_probe()
379 const struct tc3589x_keypad_platform_data *plat; in tc3589x_keypad_probe() local
382 plat = tc3589x_keypad_of_probe(&pdev->dev); in tc3589x_keypad_probe()
383 if (IS_ERR(plat)) { in tc3589x_keypad_probe()
385 return PTR_ERR(plat); in tc3589x_keypad_probe()
403 keypad->board = plat; in tc3589x_keypad_probe()
414 error = matrix_keypad_build_keymap(plat->keymap_data, NULL, in tc3589x_keypad_probe()
425 if (!plat->no_autorepeat) in tc3589x_keypad_probe()
434 plat->irqtype | IRQF_ONESHOT, in tc3589x_keypad_probe()
450 device_init_wakeup(&pdev->dev, plat->enable_wakeup); in tc3589x_keypad_probe()
451 device_set_wakeup_capable(&pdev->dev, plat->enable_wakeup); in tc3589x_keypad_probe()