linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] input: fix input-mt kernel-doc warning
@ 2012-11-07  1:07 Randy Dunlap
  2012-11-07 19:46 ` Henrik Rydberg
  0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2012-11-07  1:07 UTC (permalink / raw)
  To: linux-input, LKML; +Cc: Henrik Rydberg

From: Randy Dunlap <rdunlap@infradead.org>

Fix new kernel-doc warning in input-mt.c:

Warning(drivers/input/input-mt.c:38): No description found for parameter 'flags'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc:	Henrik Rydberg <rydberg@euromail.se>
Cc:	linux-input@vger.kernel.org
---
 drivers/input/input-mt.c |    1 +
 1 file changed, 1 insertion(+)

--- lnx-37-rc4.orig/drivers/input/input-mt.c
+++ lnx-37-rc4/drivers/input/input-mt.c
@@ -26,6 +26,7 @@ static void copy_abs(struct input_dev *d
  * input_mt_init_slots() - initialize MT input slots
  * @dev: input device supporting MT events and finger tracking
  * @num_slots: number of slots used by the device
+ * @flags: device flags (see include/linux/input/mt.h)
  *
  * This function allocates all necessary memory for MT slot handling
  * in the input device, prepares the ABS_MT_SLOT and

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

* Re: [PATCH] input: fix input-mt kernel-doc warning
  2012-11-07  1:07 [PATCH] input: fix input-mt kernel-doc warning Randy Dunlap
@ 2012-11-07 19:46 ` Henrik Rydberg
  2012-11-08 17:04   ` Dmitry Torokhov
  0 siblings, 1 reply; 5+ messages in thread
From: Henrik Rydberg @ 2012-11-07 19:46 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Dmitry Torokhov, linux-input, LKML

Hi Randy,

> From: Randy Dunlap <rdunlap@infradead.org>
> 
> Fix new kernel-doc warning in input-mt.c:
> 
> Warning(drivers/input/input-mt.c:38): No description found for parameter 'flags'

Thanks for the patch. It seemed reasonable to expand the function
documentation a bit as well, hope you are alright with the patch
below, Dmitry, care to pick this up for 3.7? Otherwise I can carry it
for 3.8.

Thanks,
Henrik

---

>From a96b3a67eefba05d7e6de3afa1b51d17728d45d3 Mon Sep 17 00:00:00 2001
From: Henrik Rydberg <rydberg@euromail.se>
Date: Wed, 7 Nov 2012 20:40:24 +0100
Subject: [PATCH] Input: MT - Document undocumented init argument

Fixes new kernel-doc warning in input-mt.c:

Warning(drivers/input/input-mt.c:38): No description found for parameter 'flags'

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
---
 drivers/input/input-mt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c
index c0ec7d4..1abbc17 100644
--- a/drivers/input/input-mt.c
+++ b/drivers/input/input-mt.c
@@ -26,10 +26,14 @@ static void copy_abs(struct input_dev *dev, unsigned int dst, unsigned int src)
  * input_mt_init_slots() - initialize MT input slots
  * @dev: input device supporting MT events and finger tracking
  * @num_slots: number of slots used by the device
+ * @flags: mt tasks to handle in core
  *
  * This function allocates all necessary memory for MT slot handling
  * in the input device, prepares the ABS_MT_SLOT and
  * ABS_MT_TRACKING_ID events for use and sets up appropriate buffers.
+ * Depending on the flags set, it also performs pointer emulation and
+ * frame synchronization.
+ *
  * May be called repeatedly. Returns -EINVAL if attempting to
  * reinitialize with a different number of slots.
  */
-- 
1.8.0


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

* Re: [PATCH] input: fix input-mt kernel-doc warning
  2012-11-07 19:46 ` Henrik Rydberg
@ 2012-11-08 17:04   ` Dmitry Torokhov
  2012-11-08 17:56     ` Henrik Rydberg
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Torokhov @ 2012-11-08 17:04 UTC (permalink / raw)
  To: Henrik Rydberg; +Cc: Randy Dunlap, linux-input, LKML

On Wed, Nov 07, 2012 at 08:46:17PM +0100, Henrik Rydberg wrote:
> Hi Randy,
> 
> > From: Randy Dunlap <rdunlap@infradead.org>
> > 
> > Fix new kernel-doc warning in input-mt.c:
> > 
> > Warning(drivers/input/input-mt.c:38): No description found for parameter 'flags'
> 
> Thanks for the patch. It seemed reasonable to expand the function
> documentation a bit as well, hope you are alright with the patch
> below, Dmitry, care to pick this up for 3.7? Otherwise I can carry it
> for 3.8.

Randy, Henrik,

I'll try getting it in 3.7.

Thanks.

-- 
Dmitry

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

* Re: [PATCH] input: fix input-mt kernel-doc warning
  2012-11-08 17:04   ` Dmitry Torokhov
@ 2012-11-08 17:56     ` Henrik Rydberg
  2012-11-14 18:05       ` Dmitry Torokhov
  0 siblings, 1 reply; 5+ messages in thread
From: Henrik Rydberg @ 2012-11-08 17:56 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: Randy Dunlap, linux-input, LKML

Hi Dmitry,

> > > From: Randy Dunlap <rdunlap@infradead.org>
> > > 
> > > Fix new kernel-doc warning in input-mt.c:
> > > 
> > > Warning(drivers/input/input-mt.c:38): No description found for parameter 'flags'
> > 
> > Thanks for the patch. It seemed reasonable to expand the function
> > documentation a bit as well, hope you are alright with the patch
> > below, Dmitry, care to pick this up for 3.7? Otherwise I can carry it
> > for 3.8.
> 
> Randy, Henrik,
> 
> I'll try getting it in 3.7.

Seems there were more warnings introduced in 3.7-rc1... adding the
patch below seems to fix all of them. I guess you want to merge the
former patch into this one.

Thanks,
Henrik

>From 1ba1d5e18057260a3203625eaee22cc94393fda3 Mon Sep 17 00:00:00 2001
From: Henrik Rydberg <rydberg@euromail.se>
Date: Thu, 8 Nov 2012 18:48:22 +0100
Subject: [PATCH] Input: Document new struct members

Fixes kernel-doc warnings for the members added in 3.7-rc1.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
---
 include/linux/input.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/input.h b/include/linux/input.h
index cab994b..2d55e55 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -112,6 +112,9 @@ struct input_value {
  * @h_list: list of input handles associated with the device. When
  *	accessing the list dev->mutex must be held
  * @node: used to place the device onto input_dev_list
+ * @num_vals: number of values queued in the current frame
+ * @max_vals: maximum number of values queued in a frame
+ * @vals: array of values queued in the current frame
  */
 struct input_dev {
 	const char *name;
-- 
1.8.0


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

* Re: [PATCH] input: fix input-mt kernel-doc warning
  2012-11-08 17:56     ` Henrik Rydberg
@ 2012-11-14 18:05       ` Dmitry Torokhov
  0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Torokhov @ 2012-11-14 18:05 UTC (permalink / raw)
  To: Henrik Rydberg; +Cc: Randy Dunlap, linux-input, LKML

On Thu, Nov 08, 2012 at 06:56:09PM +0100, Henrik Rydberg wrote:
> Hi Dmitry,
> 
> > > > From: Randy Dunlap <rdunlap@infradead.org>
> > > > 
> > > > Fix new kernel-doc warning in input-mt.c:
> > > > 
> > > > Warning(drivers/input/input-mt.c:38): No description found for parameter 'flags'
> > > 
> > > Thanks for the patch. It seemed reasonable to expand the function
> > > documentation a bit as well, hope you are alright with the patch
> > > below, Dmitry, care to pick this up for 3.7? Otherwise I can carry it
> > > for 3.8.
> > 
> > Randy, Henrik,
> > 
> > I'll try getting it in 3.7.
> 
> Seems there were more warnings introduced in 3.7-rc1... adding the
> patch below seems to fix all of them. I guess you want to merge the
> former patch into this one.

Ended up on putting all in 3.8 queue as it clashed with some other data
members I added to struct inptu_dev.

Thanks.

-- 
Dmitry

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

end of thread, other threads:[~2012-11-14 18:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-07  1:07 [PATCH] input: fix input-mt kernel-doc warning Randy Dunlap
2012-11-07 19:46 ` Henrik Rydberg
2012-11-08 17:04   ` Dmitry Torokhov
2012-11-08 17:56     ` Henrik Rydberg
2012-11-14 18:05       ` 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).