Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1437595
| From | Andi Shyti <andi.shyti@samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 00/15] lirc_dev fixes and beautification |
| Date | 2016-07-06 11:50 +0200 |
| Message-ID | <rRRCW-7w1-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Hi,
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.
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
- patch 4: added the pr_fmt definition and removed all the
hardcoded prefixes from the pr_* functions (from Joe Perches).
- patch 15: 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 (from Sean Young).
- In patch 6 I did a better refactoring
V2 -> V3
- patch 2: do not create a specific function for bufferless
allocation, but check whether the device is a transmitter, in
that case do not allocate any buffer (from Sean Young).
- patch 10: remove completely compat ioctl (from Hans Verkuil).
- patch 12: ioctl fails and returns -ENOTTY instead of -EPERM
(from Hans Verkuil).
- patch 15: removed the original patch which adds the
LIRC_GET_LENTGH command to the ioctl (from Sean Young).
- patch 15: new patch which uses LIRC_CAN_REC() define to check
if the device is a receiver.
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 compat_ioctl assignment
[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] lirc_dev: use LIRC_CAN_REC() define to check if the device can
receive
drivers/media/rc/lirc_dev.c | 302 ++++++++++++++++++++------------------------
1 file changed, 140 insertions(+), 162 deletions(-)
--
2.8.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v3 00/15] lirc_dev fixes and beautification Andi Shyti <andi.shyti@samsung.com> - 2016-07-06 11:50 +0200 [PATCH v3 10/15] [media] lirc_dev: remove compat_ioctl assignment Andi Shyti <andi.shyti@samsung.com> - 2016-07-06 11:50 +0200 [PATCH v3 11/15] [media] lirc_dev: fix variable constant comparisons Andi Shyti <andi.shyti@samsung.com> - 2016-07-06 11:50 +0200 [PATCH v3 07/15] [media] lirc_dev: simplify if statement in lirc_add_to_buf Andi Shyti <andi.shyti@samsung.com> - 2016-07-06 11:50 +0200 [PATCH v3 03/15] [media] lirc_dev: remove unnecessary debug prints Andi Shyti <andi.shyti@samsung.com> - 2016-07-06 11:50 +0200 [PATCH v3 02/15] [media] lirc_dev: allow bufferless driver registration Andi Shyti <andi.shyti@samsung.com> - 2016-07-06 11:50 +0200 [PATCH v3 15/15] [media] lirc_dev: use LIRC_CAN_REC() define to check if the device can receive Andi Shyti <andi.shyti@samsung.com> - 2016-07-06 11:50 +0200 [PATCH v3 06/15] [media] lirc_dev: do not use goto to create loops Andi Shyti <andi.shyti@samsung.com> - 2016-07-06 11:50 +0200 [PATCH v3 12/15] [media] lirc_dev: fix error return value Andi Shyti <andi.shyti@samsung.com> - 2016-07-06 11:50 +0200 [PATCH v3 04/15] [media] lirc_dev: replace printk with pr_* or dev_* Andi Shyti <andi.shyti@samsung.com> - 2016-07-06 11:50 +0200 [PATCH v3 01/15] [media] lirc_dev: place buffer allocation on separate function Andi Shyti <andi.shyti@samsung.com> - 2016-07-06 11:50 +0200 [PATCH v3 05/15] [media] lirc_dev: simplify goto paths Andi Shyti <andi.shyti@samsung.com> - 2016-07-06 11:50 +0200 [PATCH v3 08/15] [media] lirc_dev: remove double if ... else statement Andi Shyti <andi.shyti@samsung.com> - 2016-07-06 11:50 +0200 [PATCH v3 09/15] [media] lirc_dev: merge three if statements in only one Andi Shyti <andi.shyti@samsung.com> - 2016-07-06 11:50 +0200
csiph-web