Searched refs:kscan_dev (Results 1 – 3 of 3) sorted by relevance
24 const struct device *const kscan_dev = DEVICE_DT_GET(DT_ALIAS(kscan0)); in test_kb_callback() local26 if (!device_is_ready(kscan_dev)) { in test_kb_callback()31 if (kscan_config(kscan_dev, kb_callback) != 0) { in test_kb_callback()41 const struct device *const kscan_dev = DEVICE_DT_GET(DT_ALIAS(kscan0)); in test_null_callback() local43 if (!device_is_ready(kscan_dev)) { in test_null_callback()48 if (kscan_config(kscan_dev, NULL) != -EINVAL) { in test_null_callback()58 const struct device *const kscan_dev = DEVICE_DT_GET(DT_ALIAS(kscan0)); in test_disable_enable_callback() local60 if (!device_is_ready(kscan_dev)) { in test_disable_enable_callback()65 if (kscan_config(kscan_dev, kb_callback) != 0) { in test_disable_enable_callback()70 if (kscan_disable_callback(kscan_dev) != 0) { in test_disable_enable_callback()[all …]
17 const struct device *const kscan_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_keyboard_scan)); variable142 kscan_disable_callback(kscan_dev); in block_matrix_callback()146 kscan_enable_callback(kscan_dev); in block_matrix_callback()155 if (!device_is_ready(kscan_dev)) { in main()156 LOG_ERR("kscan device %s not ready", kscan_dev->name); in main()160 kscan_config(kscan_dev, kb_callback); in main()
13 static const struct device *kscan_dev = DEVICE_DT_GET( variable41 kscan_config(kscan_dev, kscan_callback); in ZTEST()42 kscan_enable_callback(kscan_dev); in ZTEST()