Re: [RFC 3/6] HID: Stop using deprecated BTN_EXTRA, _SIDE, _FORWARD and _BACK defines

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

 



On Sat, 30 Mar 2019, Hans de Goede wrote:

> Because the name of the BTN_EXTRA, _SIDE, _FORWARD and _BACK defines
> was a mismatch with how their values were actually being used, they
> have been deprecated.
> 
> This commit moves all users of these defines under drivers/hid over to
> the new defines with the _same_ value.
> 
> This commit does not cause any functional changes, after this userspace
> will see the exact same input_event codes as before.
> 
> Note that at least in the case of the m560 code in hid-logitech-hidpp.c
> it seems that accidentally the old, not interpreted by userspace as such,
> _FORWARD and _BACK defines were used. At least with Xorg this may have
> worked somewhat if the BTN_EXTRA and BTN_SIDE buttons were not generated
> as Xorg will remove holes from the range, so the buttons would still
> be mapped to Xorg button 8 and 9, but in this case forward and back will
> have been swapped. Fixing this falls outside of the scope of this commit
> as that would actually cause a functional change.
> 
> Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>

I guess this'll eventually go through Dmitry's tree, hence:

	Acked-by: Jiri Kosina <jkosina@xxxxxxx>

Thanks,

-- 
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