Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1320446

Re: [Patch] hid: enhance hid-saitek for use with R.A.T.5 and similar

From Jiri Kosina <jikos@kernel.org>
Newsgroups linux.kernel
Subject Re: [Patch] hid: enhance hid-saitek for use with R.A.T.5 and similar
Date 2016-01-28 10:00 +0100
Message-ID <qVQAP-Qb-19@gated-at.bofh.it> (permalink)
References <qP17Y-5Cx-5@gated-at.bofh.it> <qVcN4-5n8-17@gated-at.bofh.it> <qVHxw-2GU-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, 28 Jan 2016, Piotr Sawuk wrote:

> >> +	hdev = container_of(dev, struct hid_device, dev);
> >
> > You can use to_hid_device() here.
> 
> sorry, didn't notice that recent addition.
> my new patch wont work against older kernel versions though...

The only thing that really matters is that it works with the kernel it's 
being applied to and pushed upstream.

If anyone wants to backport it later to some older kernel, as part of a 
backport he'd have to open-code to_hide_device() ... no big deal.

Thanks,

-- 
Jiri Kosina
SUSE Labs

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [Patch] hid: enhance hid-saitek for use with R.A.T.5 and  similar Jiri Kosina <jikos@kernel.org> - 2016-01-26 15:30 +0100
  Re: [Patch] hid: enhance hid-saitek for use with R.A.T.5 and   similar "Piotr Sawuk" <a9702387@unet.univie.ac.at> - 2016-01-28 00:20 +0100
    Re: [Patch] hid: enhance hid-saitek for use with R.A.T.5 and   similar Jiri Kosina <jikos@kernel.org> - 2016-01-28 10:00 +0100

csiph-web