1 // Copyright 2017 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/device.h> 6 #include <ddk/driver.h> 7 #include <ddk/binding.h> 8 9 #include <zircon/types.h> 10 11 extern zx_status_t hidctl_bind(void* ctx, zx_device_t* device); 12 13 static zx_driver_ops_t hidctl_driver_ops = { 14 .version = DRIVER_OPS_VERSION, 15 .bind = hidctl_bind, 16 }; 17 18 ZIRCON_DRIVER_BEGIN(hidctl, hidctl_driver_ops, "zircon", "0.1", 1) 19 BI_MATCH_IF(EQ, BIND_PROTOCOL, ZX_PROTOCOL_MISC_PARENT), 20 ZIRCON_DRIVER_END(hidctl) 21