linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sean Young <sean@mess.org>
To: simon@mungewell.org
Cc: David Herrmann <dh.herrmann@googlemail.com>,
	linux-input@vger.kernel.org, rdunlap@xenotime.net,
	linux-next@vger.kernel.org, jkosina@suse.cz,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] HID: wiimote: Select INPUT_FF_MEMLESS
Date: Thu, 8 Dec 2011 22:43:23 +0000	[thread overview]
Message-ID: <20111208224323.GA29342@pip.mess.org> (raw)
In-Reply-To: <80063840e8a9778675e9a63db6f1d956.squirrel@host171.canaca.com>

On Thu, Dec 08, 2011 at 11:23:26AM -0500, simon@mungewell.org wrote:
> 
> >> I don't mean to be a complainer, but shouldn't the WiiMote module depend
> >> on FF_MEMLESS rather than just forcing it on.
> > > > I have considered that but "grep -r FF_MEMLESS" returned no other
> > driver using "depend" so I decided to use "select", too.
> 
> If you look at 'Kconfig' every other driver is fragmented into a 'driver'
> and 'driver_ff', it is only the 'driver_ff' bit which does the
> force-feedback and all the 'drivers' would appear to work OK (as pure
> input devices) with FF disabled.

Which also requires these drivers to have #ifdef's in their code, they
would be much cleaner without those.

> Someone here will be able to comment whether that is policy, convention or
> just historic....
> 
> >> Some people might not want FF_MEMLESS enabled.
> >
> > Why? It is a really small feature that depends only on CONFIG_INPUT.
> > Just 600 lines of code. I don't see why someone who wants to enable
> > the way bigger wiimote driver and HID core would bother about
> > FF_MEMLESS? Why should someone want to disable the rumble-feature of
> > the wiimote?
> 
> 600 lines where? What's the other costs to the system when enabling the FF
> code in the kernel.

There is just ff-memless.c which will be compiled into a module (unless 
not configured to so of of course), which is less than 600 lines including 
comments. Nothing else changes.

The fact that these drivers can be built without force feedback enabled 
is an analomy. If every feature a piece of hardware provides were 
configurable with #ifdef's, the code would not be very maintainable.

> > I cannot see any real use-case here. Maybe you can explain a bit more.
> 
> Again I'm not here to kick up a fuss; it just looked different from the
> norm, so I was flagging it.

I guess once upon time people considered force feedback not useful enough
to compile in.

I'm hoping that patches for removing the CONFIG_*_FF #ifdefs would be 
accepted.


Sean

  reply	other threads:[~2011-12-08 22:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20111207171218.e11db78531e7f20659e2ca65@canb.auug.org.au>
2011-12-07 20:53 ` linux-next: Tree for Dec 7 (hid/hid-wiimote) Randy Dunlap
2011-12-07 20:33   ` [PATCH] HID: wiimote: Select INPUT_FF_MEMLESS David Herrmann
2011-12-07 21:07     ` simon
2011-12-08  8:31       ` David Herrmann
2011-12-08 16:23         ` simon
2011-12-08 22:43           ` Sean Young [this message]
2011-12-07 21:51     ` Randy Dunlap
2011-12-11 23:27     ` Jiri Kosina

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=20111208224323.GA29342@pip.mess.org \
    --to=sean@mess.org \
    --cc=dh.herrmann@googlemail.com \
    --cc=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=rdunlap@xenotime.net \
    --cc=simon@mungewell.org \
    /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).