All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Dan Streetman <ddstreet@ieee.org>
Cc: linux-usb@vger.kernel.org, linux-input@vger.kernel.org,
	daniel.ritz@gmx.ch, Vojtech Pavlik <vojtech@suse.cz>
Subject: Re: [patch] add module parameter to provide hardware-calibrated coordinate data for MicroTouch/3M touchscreens
Date: Thu, 13 Nov 2008 16:03:24 -0800	[thread overview]
Message-ID: <20081114000324.GB19644@kroah.com> (raw)
In-Reply-To: <491CB773.2020205@ieee.org>

On Thu, Nov 13, 2008 at 06:25:39PM -0500, Dan Streetman wrote:
>
> On Thu, Nov 13, 2008 at 3:31 PM, Greg KH <greg@kroah.com> wrote:
> > On Thu, Nov 13, 2008 at 03:22:52PM -0500, Dan Streetman wrote:
> >>
> >> --- a/drivers/input/touchscreen/usbtouchscreen.c      2008-11-12
> >> 13:06:23.000000000 -0500
> >> +++ b/drivers/input/touchscreen/usbtouchscreen.c      2008-11-12
> >> 13:07:44.000000000 -0500
> >
> > Your patch is line-wrapped :(
>
> Stupid gmail! :(
> I'm trying now with thunderbird but I'm not sure if it has problems also or 
> not.  I'm attaching the patch as well just in case :(

Still linewrapped (the attached version isn't but then you have 2 copies
of the same patch in one email, which our tools do not like...)

> >> @@ -60,6 +60,10 @@ static int swap_xy;
> >>  module_param(swap_xy, bool, 0644);
> >>  MODULE_PARM_DESC(swap_xy, "If set X and Y axes are swapped.");
> >>
> >> +static int hwcalib_xy = 0;
> >> +module_param(hwcalib_xy, bool, 0444);
> >> +MODULE_PARM_DESC(hwcalib_xy, "If set hw-calibrated X/Y are used if 
> available");
> >
> > Should this variable be allowed to be changed at run time?  That might
> > be useful if the code is built into the system.  If so, please change
> > the permissions on the module_param() call.
>
> I set it as read only because I had to override the min/max coordinate 
> values in the mtouch_init() function
> if the hw-calibrated coordinates were being used, so if someone changed the 
> value after a screen
> was already connected, it would start reporting hw-calibrated coordinates 
> but the min/max values
> would still be the raw min/max...however, for people wanting to change the 
> value and then hotplug
> their touchscreens (to reset the min/max values), it would be useful.  
> Below is the patch with the
> permissions adjusted.

This kind of implies that you want this setting on a per-device basis,
right?  Why not make it attached to the individual device instead of a
system-wide option?

thanks,

greg k-h

  parent reply	other threads:[~2008-11-14  0:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-13 23:25 [patch] add module parameter to provide hardware-calibrated coordinate data for MicroTouch/3M touchscreens Dan Streetman
2008-11-13 23:36 ` Alexey Klimov
2008-11-14  0:03 ` Greg KH [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-11-25 16:29 Dan Streetman
2008-12-02 19:35 ` Dan Streetman
     [not found] ` <3fad22b40812021135v78410015ya0ea1bd149beeb0a@mail.gmail.com>
2008-12-12 17:40   ` Dan Streetman
     [not found] ` <alpine.LNX.1.10.0811251035260.30650-ah6mVDs4vN4u9rY2yWxFjw@public.gmane.org>
2009-01-08  0:52   ` Jiri Kosina
     [not found]     ` <alpine.LRH.1.10.0901080149280.24105-1ReQVI26iDCaZKY3DrU6dA@public.gmane.org>
2009-01-11  7:58       ` Dmitry Torokhov
2008-11-24 14:57 Dan Streetman
     [not found] ` <alpine.LNX.1.10.0811240944520.4090-ah6mVDs4vN4u9rY2yWxFjw@public.gmane.org>
2008-11-25 15:27   ` Jiri Kosina
2008-11-17 16:26 Dan Streetman
2008-11-14 16:17 Dan Streetman
2008-11-13 20:22 Dan Streetman
     [not found] ` <3fad22b40811131222k3a168a06tfe01b09ca106e0a2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-11-13 20:31   ` Greg KH
2008-11-14 21:31 ` Vojtech Pavlik
2008-11-14 21:46   ` Dan Streetman
2008-11-15 21:08     ` Vojtech Pavlik

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=20081114000324.GB19644@kroah.com \
    --to=greg@kroah.com \
    --cc=daniel.ritz@gmx.ch \
    --cc=ddstreet@ieee.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=vojtech@suse.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 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.