From: Paul Walmsley <paul@booyaka.com>
To: Jiri Kosina <jkosina@suse.cz>
Cc: linux-input@atrey.karlin.mff.cuni.cz
Subject: Re: [PATCH 0/7] usbhid: quirks cleanup, add dynamic quirks, ConfigFS interface
Date: Wed, 11 Apr 2007 12:43:18 -0600 (MDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0704111231010.28726@utopia.booyaka.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0704111635590.5079@jikos.suse.cz>
On Wed, 11 Apr 2007, Jiri Kosina wrote:
> On Wed, 11 Apr 2007, Jiri Kosina wrote:
>
>> - [7/7] I agree with using configfs. What is quite unfortunate is that
>> adding a new quirk requires now another place that it is necessary to
>> modify - forgetting to do it and keeping configfs values out-of-sync
>> seems rather easy mistake to do. But I am not able to come with an idea
>> immediately how to make it better.
>
> Maybe just reusing hid_blacklist and extending it with 'name' column for
> the purposes of configfs would suffice? (ca_mode and ca_owner could be
> made default implicitly I guess).
Hi Jiri,
You're talking about using another static struct hid_blacklist array in
place of the struct hid_quirk_types array, right? We could do that, but I
don't see how it would solve the problem of having two places to update
when a new quirk type is added - both the #defines and the new
hid_blacklist array would still need to be changed. But maybe I'm
misunderstanding what you're proposing...
One other way to do it would be to remove the HID_QUIRK* #defines and to
call find_quirk_bits_by_name() instead, which iterates over struct
hid_quirk_types. Comparatively slower than a preprocessor define, but
then again this code isn't in a fast path anyway...
- Paul
next prev parent reply other threads:[~2007-04-11 18:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-11 6:49 [PATCH 0/7] usbhid: quirks cleanup, add dynamic quirks, ConfigFS interface Paul Walmsley
2007-04-11 12:49 ` Jiri Kosina
2007-04-11 14:37 ` Jiri Kosina
2007-04-11 18:43 ` Paul Walmsley [this message]
2007-04-12 15:39 ` Jiri Kosina
2007-04-12 16:14 ` Paul Walmsley
2007-04-12 16:51 ` Jiri Kosina
2007-04-12 20:27 ` Paul Walmsley
2007-04-11 18:30 ` Paul Walmsley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0704111231010.28726@utopia.booyaka.com \
--to=paul@booyaka.com \
--cc=jkosina@suse.cz \
--cc=linux-input@atrey.karlin.mff.cuni.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).