• Home
  • Raw
  • Download

Lines Matching refs:plat

304 	struct tc3589x_keypad_platform_data *plat;  in tc3589x_keypad_of_probe()  local
312 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in tc3589x_keypad_of_probe()
313 if (!plat) in tc3589x_keypad_of_probe()
318 plat->kcol = (u8) cols; in tc3589x_keypad_of_probe()
319 plat->krow = (u8) rows; in tc3589x_keypad_of_probe()
320 if (!plat->krow || !plat->kcol || in tc3589x_keypad_of_probe()
321 plat->krow > TC_KPD_ROWS || plat->kcol > TC_KPD_COLUMNS) { in tc3589x_keypad_of_probe()
324 plat->kcol, plat->krow); in tc3589x_keypad_of_probe()
333 plat->no_autorepeat = of_property_read_bool(np, "linux,no-autorepeat"); in tc3589x_keypad_of_probe()
334 plat->enable_wakeup = of_property_read_bool(np, "linux,wakeup"); in tc3589x_keypad_of_probe()
339 plat->debounce_period = debounce_ms * 16; in tc3589x_keypad_of_probe()
341 plat->debounce_period = TC_KPD_DEBOUNCE_PERIOD; in tc3589x_keypad_of_probe()
343 plat->settle_time = TC_KPD_SETTLE_TIME; in tc3589x_keypad_of_probe()
345 plat->irqtype = IRQF_TRIGGER_FALLING; in tc3589x_keypad_of_probe()
347 return plat; in tc3589x_keypad_of_probe()
363 const struct tc3589x_keypad_platform_data *plat; in tc3589x_keypad_probe() local
366 plat = tc3589x->pdata->keypad; in tc3589x_keypad_probe()
367 if (!plat) { in tc3589x_keypad_probe()
368 plat = tc3589x_keypad_of_probe(&pdev->dev); in tc3589x_keypad_probe()
369 if (IS_ERR(plat)) { in tc3589x_keypad_probe()
371 return PTR_ERR(plat); in tc3589x_keypad_probe()
387 keypad->board = plat; in tc3589x_keypad_probe()
398 error = matrix_keypad_build_keymap(plat->keymap_data, NULL, in tc3589x_keypad_probe()
409 if (!plat->no_autorepeat) in tc3589x_keypad_probe()
415 tc3589x_keypad_irq, plat->irqtype, in tc3589x_keypad_probe()
431 device_init_wakeup(&pdev->dev, plat->enable_wakeup); in tc3589x_keypad_probe()
432 device_set_wakeup_capable(&pdev->dev, plat->enable_wakeup); in tc3589x_keypad_probe()