All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Mack <daniel@caiaq.de>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org
Subject: Re: ABS_MAX incrementation?
Date: Tue, 4 May 2010 09:18:55 +0200	[thread overview]
Message-ID: <20100504071855.GN30801@buzzloop.caiaq.de> (raw)
In-Reply-To: <20100504065832.GC17482@core.coreip.homeip.net>

Hi Dmitry,

On Mon, May 03, 2010 at 11:58:32PM -0700, Dmitry Torokhov wrote:
> On Sun, May 02, 2010 at 02:13:31PM +0200, Daniel Mack wrote:
> > Hmm, maybe I could also help with that. Could you outline where this
> > should go? I guess a linked list is not very suitable as it doesn't
> > allow instant access of specific members. So we need a fixed-size bitmap
> > to indicate active members at least?
> 
> I was just thinking about having drivers taht emit absolute events
> allocate abs data (value, min, max, resolution) separately from
> allocating a device (or maybe have additional input_abs_device_alloc
> helper). Someting very simple.

So that would buy us less memory footprint by saving 4 integers for 1
pointer. However, we would still need to store an array of pointers
which has ABS_MAX entries.

I'm hessitating as I would like to see ABS_MAX being quite large.
I'm planning to write a driver with > 100 absolute axis soon.

Also, that approach wouldn't be able to be descriptive about what the
axis in fact represent, and especially for such a high number, that
would be more than just a nice-to-have :)

As I say, I'd be willing to help with this hack up a clean solution
which also teaches the user space interface new fancy features. I would
just need some idea what's a proper way to go.

Thanks,
Daniel

      reply	other threads:[~2010-05-04  7:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-19 17:14 ABS_MAX incrementation? Daniel Mack
2010-04-19 17:49 ` Dmitry Torokhov
2010-04-19 18:06   ` Daniel Mack
2010-04-21  6:29     ` Dmitry Torokhov
2010-05-02 12:13       ` Daniel Mack
2010-05-04  6:58         ` Dmitry Torokhov
2010-05-04  7:18           ` Daniel Mack [this message]

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=20100504071855.GN30801@buzzloop.caiaq.de \
    --to=daniel@caiaq.de \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.