hog: Set vendor, product and version for all instances
authorHaakon Drews <haadr@negentropy.io>
Sat, 16 May 2020 21:02:38 +0000 (23:02 +0200)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commita4ff94353ea3f833a78840ac5fd47f0fc9945cbb
tree9dea7a47f20e65f881c7918fe0a743b1d113169e
parent567601c2cbece5853ff0736fce6198b387a1b0f1
hog: Set vendor, product and version for all instances

Set the the correct vendor and product ids for all UHID/HoG
devices when they are unknown at HoG creation time.

Before this change, when connecting a BT device with multiple HoG
services for the first time, only the first HoG instance's vendor,
product and version fields would be set by the DIS callback. This meant
that all HoG instances except the first would be left with unset values
and their UHID devices would then be created with '0000:0000' as their
vendor:product ids.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/input/hog-lib.c