On Thu, Jul 10, 2014 at 03:18:18PM -0400, Benjamin Tissoires wrote:
> Since kernel commit bbe3175408cde792fbaa5bd1e41e430ea9e4fb4f
> (HID: input: fix input sysfs path for hid devices) available since v3.14,
> Bluetooth input devices are registered on top of the HID parent, not
> the Bluetooth one.
> That means that libwacom currently consider their transport bus as hid,
> instead of bluetooth or usb.
> 
> This change is also required for USB if the path is taken to switch from
> a plain USB driver to a HID one (https://patchwork.kernel.org/patch/4454631/)
> 
> Signed-off-by: Benjamin Tissoires <benjamin.tissoi...@redhat.com>
> ---

pushed, thanks

Cheers,
   Peter

> 
> changes in v2:
> - add parenthesis around the || statement
> 
>  libwacom/libwacom.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libwacom/libwacom.c b/libwacom/libwacom.c
> index 574e6f3..2a99c95 100644
> --- a/libwacom/libwacom.c
> +++ b/libwacom/libwacom.c
> @@ -102,7 +102,8 @@ get_bus (GUdevDevice *device)
>       subsystem = g_udev_device_get_subsystem (device);
>       parent = g_object_ref (device);
>  
> -     while (parent && g_strcmp0 (subsystem, "input") == 0) {
> +     while (parent && ((g_strcmp0 (subsystem, "input") == 0) ||
> +                       (g_strcmp0 (subsystem, "hid") == 0)) ){
>               GUdevDevice *old_parent = parent;
>               parent = g_udev_device_get_parent (old_parent);
>               if (parent)
> -- 
> 1.9.3
> 
> 
> ------------------------------------------------------------------------------
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> http://p.sf.net/sfu/Bonitasoft
> _______________________________________________
> Linuxwacom-devel mailing list
> Linuxwacom-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
> 

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to