INPUT_REGISTER_DEVIC

Section: Input Subsystem (9)
Updated: February 2011
Index Return to Main Contents
 

NAME

input_register_device - register device with input core  

SYNOPSIS

int input_register_device(struct input_dev * dev);
 

ARGUMENTS

dev

device to be registered
 

DESCRIPTION

This function registers device with input core. The device must be allocated with input_allocate_device and all it's capabilities set up before registering. If function fails the device must be freed with input_free_device. Once device has been successfully registered it can be unregistered with input_unregister_device; input_free_device should not be called in this case.  

COPYRIGHT