Re: [PATCH 2.6.34-rc7 v4] HID: hid-samsung: add support for Creative Desktop Wireless 6000

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

 



On 17/05/10 18:11, Robert Schedel wrote:
> Hello,
>
> sorry for one late observation:
>
> On 17.05.2010 12:42, Don Prince wrote:
>   
>> Add support for the multimedia buttons of the Creative Desktop Wireless
>> 6000 keyboard/mouse combo which are not currently handled by the
>> default/samsung HID driver.
>>
>> Signed-off-by: Don Prince <dhprince-devel@xxxxxxxxxxx>
>>
>> ---
>>
>> Added comments as requested by Robert Schedel <r.schedel@xxxxxxxx>
>>
>> As requested by Jiri Kosina, made key mapping code more concise
>> i.e. ignored checkpatch.pl's wingeing about code style.
>>     
> [...]
>   
>> +	switch (usage->hid & HID_USAGE) {
>> +	/* report 2 */
>> +	case 0x0b5: samsung_kbd_mouse_map_key_clear(KEY_NEXTSONG); break;
>> +	case 0x0b6: samsung_kbd_mouse_map_key_clear(KEY_PREVIOUSSONG); break;
>> +	case 0x0b7: samsung_kbd_mouse_map_key_clear(KEY_STOPCD); break;
>> +	case 0x0cd: samsung_kbd_mouse_map_key_clear(KEY_PLAYPAUSE); break;
>> +	case 0x0e2: samsung_kbd_mouse_map_key_clear(KEY_MUTE); break;
>> +	case 0x0e9: samsung_kbd_mouse_map_key_clear(KEY_VOLUMEUP); break;
>> +	case 0x0ea: samsung_kbd_mouse_map_key_clear(KEY_VOLUMEDOWN); break;
>>     
> Those seven are identical to hid-input.c mapping (HUT 1.1 compliant) and could simply be deleted. Daisy chaining via default case below, right?
>
>   
Yes they (the seven) are redundant. They work with default behaviour.
>> +	case 0x183: samsung_kbd_mouse_map_key_clear(KEY_MEDIA); break;
>> +	case 0x195: samsung_kbd_mouse_map_key_clear(KEY_EMAIL);	break;
>> +	case 0x196: samsung_kbd_mouse_map_key_clear(KEY_CALC); break;
>> +	case 0x197: samsung_kbd_mouse_map_key_clear(KEY_COMPUTER); break;
>> +	case 0x22b: samsung_kbd_mouse_map_key_clear(KEY_SEARCH); break;
>> +	case 0x22c: samsung_kbd_mouse_map_key_clear(KEY_WWW); break;
>> +	case 0x22d: samsung_kbd_mouse_map_key_clear(KEY_BACK); break;
>> +	case 0x22e: samsung_kbd_mouse_map_key_clear(KEY_FORWARD); break;
>> +	case 0x22f: samsung_kbd_mouse_map_key_clear(KEY_FAVORITES); break;
>> +	case 0x230: samsung_kbd_mouse_map_key_clear(KEY_REFRESH); break;
>> +	case 0x231: samsung_kbd_mouse_map_key_clear(KEY_STOP); break;
>> +	default:
>> +		return 0;
>>     
> Regards,
> Robert Schedel
>
>   


		
___________________________________________________________ 
Yahoo! Messenger - with free PC-PC calling and photo sharing. http://uk.messenger.yahoo.com
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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