linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH resend] bcm5974: Add pointer and buttonpad properties
@ 2012-02-14  4:24 Chase Douglas
  2012-02-14  5:07 ` Wanlong Gao
  2012-02-14 15:19 ` Henrik Rydberg
  0 siblings, 2 replies; 7+ messages in thread
From: Chase Douglas @ 2012-02-14  4:24 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: Henrik Rydberg, linux-input

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
---
I sent to the wrong mailing list address the first time. Sorry!

 drivers/input/mouse/bcm5974.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/input/mouse/bcm5974.c b/drivers/input/mouse/bcm5974.c
index 5ec617e..9faa049 100644
--- a/drivers/input/mouse/bcm5974.c
+++ b/drivers/input/mouse/bcm5974.c
@@ -434,6 +434,9 @@ static void setup_events_to_report(struct input_dev *input_dev,
 	__set_bit(BTN_LEFT, input_dev->keybit);
 
 	input_set_events_per_packet(input_dev, 60);
+
+	__set_bit(INPUT_PROP_POINTER, input->propbit);
+	__set_bit(INPUT_PROP_BUTTONPAD, input->propbit);
 }
 
 /* report button data as logical button state */
-- 
1.7.9


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH resend] bcm5974: Add pointer and buttonpad properties
  2012-02-14  4:24 [PATCH resend] bcm5974: Add pointer and buttonpad properties Chase Douglas
@ 2012-02-14  5:07 ` Wanlong Gao
  2012-02-14  5:40   ` Chase Douglas
  2012-02-14 15:19 ` Henrik Rydberg
  1 sibling, 1 reply; 7+ messages in thread
From: Wanlong Gao @ 2012-02-14  5:07 UTC (permalink / raw)
  To: Chase Douglas; +Cc: Dmitry Torokhov, Henrik Rydberg, linux-input

On 02/14/2012 12:24 PM, Chase Douglas wrote:

> Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
> ---
> I sent to the wrong mailing list address the first time. Sorry!


Please add some comments here.
This shouldn't be the change log of this patch.

Thanks
-Wanlong Gao

> 
>  drivers/input/mouse/bcm5974.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/input/mouse/bcm5974.c b/drivers/input/mouse/bcm5974.c
> index 5ec617e..9faa049 100644
> --- a/drivers/input/mouse/bcm5974.c
> +++ b/drivers/input/mouse/bcm5974.c
> @@ -434,6 +434,9 @@ static void setup_events_to_report(struct input_dev *input_dev,
>  	__set_bit(BTN_LEFT, input_dev->keybit);
>  
>  	input_set_events_per_packet(input_dev, 60);
> +
> +	__set_bit(INPUT_PROP_POINTER, input->propbit);
> +	__set_bit(INPUT_PROP_BUTTONPAD, input->propbit);
>  }
>  
>  /* report button data as logical button state */



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH resend] bcm5974: Add pointer and buttonpad properties
  2012-02-14  5:07 ` Wanlong Gao
@ 2012-02-14  5:40   ` Chase Douglas
  0 siblings, 0 replies; 7+ messages in thread
From: Chase Douglas @ 2012-02-14  5:40 UTC (permalink / raw)
  To: gaowanlong; +Cc: Dmitry Torokhov, Henrik Rydberg, linux-input

On 02/14/2012 06:07 AM, Wanlong Gao wrote:
> On 02/14/2012 12:24 PM, Chase Douglas wrote:
> 
>> Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
>> ---
>> I sent to the wrong mailing list address the first time. Sorry!
> 
> 
> Please add some comments here.
> This shouldn't be the change log of this patch.

I'm not sure what you want... The driver should expose these properties
because of the intrinsic nature of the device. Documentation for the
properties is found elsewhere.

-- Chase

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH resend] bcm5974: Add pointer and buttonpad properties
  2012-02-14  4:24 [PATCH resend] bcm5974: Add pointer and buttonpad properties Chase Douglas
  2012-02-14  5:07 ` Wanlong Gao
@ 2012-02-14 15:19 ` Henrik Rydberg
  2012-02-14 15:23   ` Chase Douglas
  1 sibling, 1 reply; 7+ messages in thread
From: Henrik Rydberg @ 2012-02-14 15:19 UTC (permalink / raw)
  To: Chase Douglas; +Cc: Dmitry Torokhov, linux-input

Hi Chase,

On Mon, Feb 13, 2012 at 08:24:08PM -0800, Chase Douglas wrote:
> Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
> ---
> I sent to the wrong mailing list address the first time. Sorry!
> 
>  drivers/input/mouse/bcm5974.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/input/mouse/bcm5974.c b/drivers/input/mouse/bcm5974.c
> index 5ec617e..9faa049 100644
> --- a/drivers/input/mouse/bcm5974.c
> +++ b/drivers/input/mouse/bcm5974.c
> @@ -434,6 +434,9 @@ static void setup_events_to_report(struct input_dev *input_dev,
>  	__set_bit(BTN_LEFT, input_dev->keybit);
>  
>  	input_set_events_per_packet(input_dev, 60);
> +
> +	__set_bit(INPUT_PROP_POINTER, input->propbit);
> +	__set_bit(INPUT_PROP_BUTTONPAD, input->propbit);
>  }
>  
>  /* report button data as logical button state */
> -- 
> 1.7.9
>

I can take this for 3.4, but the patch needs a commit message. "In
order to move userspace in the direction of simpler and more accurate
device setup, emit device properties..."?

Thanks,
Henrik


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH resend] bcm5974: Add pointer and buttonpad properties
  2012-02-14 15:19 ` Henrik Rydberg
@ 2012-02-14 15:23   ` Chase Douglas
  2012-02-14 15:28     ` Mohamed Ikbel Boulabiar
  0 siblings, 1 reply; 7+ messages in thread
From: Chase Douglas @ 2012-02-14 15:23 UTC (permalink / raw)
  To: Henrik Rydberg; +Cc: Dmitry Torokhov, linux-input

On 02/14/2012 04:19 PM, Henrik Rydberg wrote:
> Hi Chase,
> 
> On Mon, Feb 13, 2012 at 08:24:08PM -0800, Chase Douglas wrote:
>> Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
>> ---
>> I sent to the wrong mailing list address the first time. Sorry!
>>
>>  drivers/input/mouse/bcm5974.c |    3 +++
>>  1 files changed, 3 insertions(+), 0 deletions(-)
>>
>> diff --git a/drivers/input/mouse/bcm5974.c b/drivers/input/mouse/bcm5974.c
>> index 5ec617e..9faa049 100644
>> --- a/drivers/input/mouse/bcm5974.c
>> +++ b/drivers/input/mouse/bcm5974.c
>> @@ -434,6 +434,9 @@ static void setup_events_to_report(struct input_dev *input_dev,
>>  	__set_bit(BTN_LEFT, input_dev->keybit);
>>  
>>  	input_set_events_per_packet(input_dev, 60);
>> +
>> +	__set_bit(INPUT_PROP_POINTER, input->propbit);
>> +	__set_bit(INPUT_PROP_BUTTONPAD, input->propbit);
>>  }
>>  
>>  /* report button data as logical button state */
>> -- 
>> 1.7.9
>>
> 
> I can take this for 3.4, but the patch needs a commit message. "In
> order to move userspace in the direction of simpler and more accurate
> device setup, emit device properties..."?

I can add that, it's just superfluous. It doesn't really tell the reader
anything if they need to know what is going on. Unless the message is
supposed to copy the definition of the properties themselves, which is
rather pointless.

It's like documenting a function:

bool is_object_mutable();
Returns true if object is mutable;

There's really no point.

I'll send a v2 version of this patch with some kind of commit message
just to get it over with, but I don't know where the insistence of a
commit message body comes from...

-- Chase

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH resend] bcm5974: Add pointer and buttonpad properties
  2012-02-14 15:23   ` Chase Douglas
@ 2012-02-14 15:28     ` Mohamed Ikbel Boulabiar
  2012-02-14 17:00       ` Dmitry Torokhov
  0 siblings, 1 reply; 7+ messages in thread
From: Mohamed Ikbel Boulabiar @ 2012-02-14 15:28 UTC (permalink / raw)
  To: Chase Douglas; +Cc: Henrik Rydberg, Dmitry Torokhov, linux-input

On Tue, Feb 14, 2012 at 4:23 PM, Chase Douglas
<chase.douglas@canonical.com> wrote:
>
> I can add that, it's just superfluous. It doesn't really tell the reader
> anything if they need to know what is going on. Unless the message is
> supposed to copy the definition of the properties themselves, which is
> rather pointless.
>
> It's like documenting a function:
>
> bool is_object_mutable();
> Returns true if object is mutable;
>
> There's really no point.

We don't always have the message+code. In the end we have only commit
msgs like the raw changelog here :
http://www.kernel.org/pub/linux/kernel/v3.0/ChangeLog-3.2.6

i

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH resend] bcm5974: Add pointer and buttonpad properties
  2012-02-14 15:28     ` Mohamed Ikbel Boulabiar
@ 2012-02-14 17:00       ` Dmitry Torokhov
  0 siblings, 0 replies; 7+ messages in thread
From: Dmitry Torokhov @ 2012-02-14 17:00 UTC (permalink / raw)
  To: Mohamed Ikbel Boulabiar; +Cc: Chase Douglas, Henrik Rydberg, linux-input

On Tuesday, February 14, 2012 04:28:18 PM Mohamed Ikbel Boulabiar wrote:
> On Tue, Feb 14, 2012 at 4:23 PM, Chase Douglas
> 
> <chase.douglas@canonical.com> wrote:
> > I can add that, it's just superfluous. It doesn't really tell the reader
> > anything if they need to know what is going on. Unless the message is
> > supposed to copy the definition of the properties themselves, which is
> > rather pointless.
> > 
> > It's like documenting a function:
> > 
> > bool is_object_mutable();
> > Returns true if object is mutable;
> > 
> > There's really no point.
> 
> We don't always have the message+code. In the end we have only commit
> msgs like the raw changelog here :
> http://www.kernel.org/pub/linux/kernel/v3.0/ChangeLog-3.2.6

The summary of the patch would still be in the changelog:

	bcm5974: Add pointer and buttonpad properties

and I rally do not see the point of trying to expand it into the body
of the changelog if there isn't anything more to say. It's the same
as checkpatch complaining that some Kconfig options are too short
when full description does indeed fit into 1 line (for example enabling
SPI or I2C support module for a certain device when driver split
into core and bus-specific parts - there is literally nothing else to
say).

Thanks.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-02-14 17:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-14  4:24 [PATCH resend] bcm5974: Add pointer and buttonpad properties Chase Douglas
2012-02-14  5:07 ` Wanlong Gao
2012-02-14  5:40   ` Chase Douglas
2012-02-14 15:19 ` Henrik Rydberg
2012-02-14 15:23   ` Chase Douglas
2012-02-14 15:28     ` Mohamed Ikbel Boulabiar
2012-02-14 17:00       ` Dmitry Torokhov

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).