public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/15] lirc_dev fixes and beautification
@ 2016-07-01  8:01 Andi Shyti
  2016-07-01  8:01 ` [PATCH v2 01/15] [media] lirc_dev: place buffer allocation on separate function Andi Shyti
                   ` (14 more replies)
  0 siblings, 15 replies; 20+ messages in thread
From: Andi Shyti @ 2016-07-01  8:01 UTC (permalink / raw)
  To: Mauro Carvalho Chehab
  Cc: Joe Perches, Sean Young, linux-media, linux-kernel, Andi Shyti,
	Andi Shyti

Hi,

After applying Joe's suggestion, the next patches had some
conflicts, therefore I have to send all the 15 patches again.

This is a collection of fixes, added functionality, coding rework
and trivial coding style fixes.

The first patch is preparatory to the second, which allows the
user to create a lirc driver without receiver buffer, which is
obvious for transmitters. Besides, even though that buffer could
have been used also by transmitters, drivers might have the need
to handle it separately.

The rest of the patches is a series of coding style and code
rework, as I said, some of them are very trivial, but I sent them
anyway because I was on fire.

Patch 14 is a segfault fix, while the last patch adds the
possibility to send to ioctl the set frequency, get frequency and
set length command.

Changelog: V1->V2

 - As Joe recommended, in patch 4 I added the pr_fmt definition
   and removed all the hardcoded prefixes from the pr_*
   functions.

 - In Patch 15, after Sean's review, I removed the definitions of
   the GET/SET_FREQUENCY, I will use GET/SET_SEND_CARRIER
   instead, even though I find the name a bit confusing.

 - In patch 6 I did a better refactoring

Thanks,
Andi

Andi Shyti (15):
  [media] lirc_dev: place buffer allocation on separate function
  [media] lirc_dev: allow bufferless driver registration
  [media] lirc_dev: remove unnecessary debug prints
  [media] lirc_dev: replace printk with pr_* or dev_*
  [media] lirc_dev: simplify goto paths
  [media] lirc_dev: do not use goto to create loops
  [media] lirc_dev: simplify if statement in lirc_add_to_buf
  [media] lirc_dev: remove double if ... else statement
  [media] lirc_dev: merge three if statements in only one
  [media] lirc_dev: remove CONFIG_COMPAT precompiler check
  [media] lirc_dev: fix variable constant comparisons
  [media] lirc_dev: fix error return value
  [media] lirc_dev: extremely trivial comment style fix
  [media] lirc_dev: fix potential segfault
  [media] include: lirc: add LIRC_GET_LENGTH command

 drivers/media/rc/lirc_dev.c | 301 +++++++++++++++++++++-----------------------
 include/media/lirc_dev.h    |  12 ++
 include/uapi/linux/lirc.h   |   1 +
 3 files changed, 155 insertions(+), 159 deletions(-)

-- 
2.8.1

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

end of thread, other threads:[~2016-07-04 11:43 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-01  8:01 [PATCH v2 00/15] lirc_dev fixes and beautification Andi Shyti
2016-07-01  8:01 ` [PATCH v2 01/15] [media] lirc_dev: place buffer allocation on separate function Andi Shyti
2016-07-01  8:01 ` [PATCH v2 02/15] [media] lirc_dev: allow bufferless driver registration Andi Shyti
2016-07-02 17:10   ` Sean Young
2016-07-01  8:01 ` [PATCH v2 03/15] [media] lirc_dev: remove unnecessary debug prints Andi Shyti
2016-07-01  8:01 ` [PATCH v2 04/15] [media] lirc_dev: replace printk with pr_* or dev_* Andi Shyti
2016-07-01  8:01 ` [PATCH v2 05/15] [media] lirc_dev: simplify goto paths Andi Shyti
2016-07-01  8:01 ` [PATCH v2 06/15] [media] lirc_dev: do not use goto to create loops Andi Shyti
2016-07-01  8:01 ` [PATCH v2 07/15] [media] lirc_dev: simplify if statement in lirc_add_to_buf Andi Shyti
2016-07-01  8:01 ` [PATCH v2 08/15] [media] lirc_dev: remove double if ... else statement Andi Shyti
2016-07-01  8:01 ` [PATCH v2 09/15] [media] lirc_dev: merge three if statements in only one Andi Shyti
2016-07-01  8:01 ` [PATCH v2 10/15] [media] lirc_dev: remove CONFIG_COMPAT precompiler check Andi Shyti
2016-07-04 11:39   ` Hans Verkuil
2016-07-01  8:01 ` [PATCH v2 11/15] [media] lirc_dev: fix variable constant comparisons Andi Shyti
2016-07-01  8:01 ` [PATCH v2 12/15] [media] lirc_dev: fix error return value Andi Shyti
2016-07-04 11:42   ` Hans Verkuil
2016-07-01  8:01 ` [PATCH v2 13/15] [media] lirc_dev: extremely trivial comment style fix Andi Shyti
2016-07-01  8:01 ` [PATCH v2 14/15] [media] lirc_dev: fix potential segfault Andi Shyti
2016-07-01  8:01 ` [PATCH v2 15/15] [media] include: lirc: add LIRC_GET_LENGTH command Andi Shyti
2016-07-01  9:27   ` Sean Young

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox