Re: [PATCH 2/3] hid: Multitouch support for the N-Trig touchscreen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[ added Rafi Rubin to CC ]


On Tue, 19 May 2009, Stéphane Chatty wrote:

> Exported hidinput_hid_event, so as to be able to call it from device-specific
> drivers.
> 
> Signed-off-by: Stephane Chatty <chatty@xxxxxxx>
> 
> diff -rupN a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
> --- a/drivers/hid/hid-input.c	2009-05-09 02:14:14.000000000 +0200
> +++ b/drivers/hid/hid-input.c	2009-05-16 16:10:39.000000000 +0200
> @@ -653,6 +653,7 @@ void hidinput_hid_event(struct hid_devic
> 	if ((field->flags & HID_MAIN_ITEM_RELATIVE) && (usage->type ==
> 	EV_KEY))
> 		input_event(input, usage->type, usage->code, 0);
> }
> +EXPORT_SYMBOL_GPL(hidinput_hid_event);

Why is this needed? ->event() callback is called for every HID driver 
which has this callback registered, and fallback to hidinput_hid_event() 
is performed in cases the driver-specific ->event() handler returns return 
value > 0 , signalizing that the event hasn't been fully processed and 
processing by generic layer is needed.

-- 
Jiri Kosina
SUSE Labs

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux