1 // Copyright 2018 The Fuchsia Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include <ddk/binding.h>
6 #include <ddk/driver.h>
7 #include <ddk/platform-defs.h>
8 
9 extern zx_status_t ft3x27_bind(void* ctx, zx_device_t* parent);
10 
11 static zx_driver_ops_t focaltech_driver_ops = {
12     .version = DRIVER_OPS_VERSION,
13     .bind = ft3x27_bind,
14 };
15 
16 // clang-format off
17 ZIRCON_DRIVER_BEGIN(focaltech_touch, focaltech_driver_ops, "focaltech-touch", "0.1", 3)
18     BI_ABORT_IF(NE, BIND_PROTOCOL, ZX_PROTOCOL_PDEV),
19     BI_ABORT_IF(NE, BIND_PLATFORM_DEV_VID, PDEV_VID_GENERIC),
20     BI_MATCH_IF(EQ, BIND_PLATFORM_DEV_DID, PDEV_DID_FOCALTOUCH),
21 ZIRCON_DRIVER_END(focaltech_touch)
22 // clang-format on
23