On Thu, 29 Jun 2017, Benjamin Tissoires wrote:
OTOH, I would think having a more generic approach would be fine:
bool inline bool hid_is_using_driver(struct hid_device *hdev,
struct hid_ll_driver *driver)
{
return dev->ll_driver == driver;
}
And we can start adding the various extern definitions of the
ll_drivers in hid.h too...
How does that sound? Jiri?
Yeah, I find it slightly ugly, but at least it's generic :)
--
Jiri Kosina
SUSE Labs