From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752649AbcF2NVF (ORCPT ); Wed, 29 Jun 2016 09:21:05 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:48043 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752043AbcF2NU7 (ORCPT ); Wed, 29 Jun 2016 09:20:59 -0400 X-AuditID: cbfee68f-f79476d000001429-16-5773cb38935c From: Andi Shyti To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti , Andi Shyti Subject: [PATCH 00/15] lirc_dev fixes and beautification Date: Wed, 29 Jun 2016 22:20:29 +0900 Message-id: <1467206444-9935-1-git-send-email-andi.shyti@samsung.com> X-Mailer: git-send-email 2.8.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrELMWRmVeSWpSXmKPExsWyRsSkUNfidHG4wbm5IhbbjzxjtVj84zmT xeVdc9gsejZsZbVY/azCgdXj+pJPzB5b+u+ye/RtWcXo8XmTXABLFJdNSmpOZllqkb5dAlfG gzcbmAq+8lbcObiJvYGxn7uLkZNDQsBE4smh32wQtpjEhXvrgWwuDiGBFYwSJ9Y+ZoUpapj7 lwkisZRRYvHUW1BVHxklJp36DtbOJqAp0XT7B5DNwSEiYCxx7oc6SJhZoJlRYvd1IxBbWMBC Ys+5S8wgJSwCqhI7zmaBhHkFXCXmN72DOkJO4vL0B2DjJQRes0l0HPkIlmAREJD4NvkQC0iv hICsxKYDzBD1khIHV9xgmcAouICRYRWjaGpBckFxUnqRsV5xYm5xaV66XnJ+7iZGYFCe/ves fwfj3QPWhxgFOBiVeHh/HC4OF2JNLCuuzD3EaAq0YSKzlGhyPjD080riDY3NjCxMTUyNjcwt zZTEeRdK/QwWEkhPLEnNTk0tSC2KLyrNSS0+xMjEwSnVwNgybS/Xz9t/EhSvzgu7rb9HRyL/ 2+PpXZ8f9zEEF1/35YvLC16l0PRkArPb2xscH7j7FUJqXB7rBmbwHZ1oPVGLizPJgzXX1Wy5 mf7RZMN68xsbeC9eSbuz/Gr99W9zxZ4LJnE6+M0XLv3r8vh0yMY1ut9exP7Zuni65xHPa0FM d45c5PaZ2aTEUpyRaKjFXFScCAAcbvMhRQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPLMWRmVeSWpSXmKPExsVy+t9jAV2L08XhBuvO8FtsP/KM1WLxj+dM Fpd3zWGz6NmwldVi9bMKB1aP60s+MXts6b/L7tG3ZRWjx+dNcgEsUQ2MNhmpiSmpRQqpecn5 KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJuam2Si4+AbpumTlAe5UUyhJzSoFCAYnFxUr6dpgm hIa46VrANEbo+oYEwfUYGaCBhDWMGQ/ebGAq+MpbcefgJvYGxn7uLkZODgkBE4mGuX+ZIGwx iQv31rN1MXJxCAksZZRYPPUWlPORUWLSqe9sIFVsApoSTbd/ANkcHCICxhLnfqiDhJkFmhkl dl83ArGFBSwk9py7xAxSwiKgKrHjbBZImFfAVWJ+0zs2iF1yEpenP2CbwMi9gJFhFaNEakFy QXFSeq5RXmq5XnFibnFpXrpecn7uJkZw4D+T3sF4eJf7IUYBDkYlHl6LC0XhQqyJZcWVuYcY JTiYlUR45U4UhwvxpiRWVqUW5ccXleakFh9iNAXaP5FZSjQ5HxiVeSXxhsYmZkaWRuaGFkbG 5krivI//rwsTEkhPLEnNTk0tSC2C6WPi4JQCBpHjx/U9c3bsy/GJ9g8/GBn1eVPxk5JDoeaT u0Rq/mUIet50jDfbsO28x9b5VsobWpU/vt8q+yGjY2XaaqedIUmBk3w4l6WdcfdqfRl5WurY TJ3+s3ute3Kb58566W5m9aWzReGhz02V6MWnVa313+81y0tdtDlUbNXX0AMdzV3HA5+uybC5 rsRSnJFoqMVcVJwIANEM6V2SAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, because I wanted to add three ioctl commands in lirc, I ended up with the patchset below. 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. Thanks, Andi Andi Shyti (15): lirc_dev: place buffer allocation on separate function lirc_dev: allow bufferless driver registration lirc_dev: remove unnecessary debug prints lirc_dev: replace printk with pr_* or dev_* lirc_dev: simplify goto paths lirc_dev: do not use goto to create loops lirc_dev: simplify if statement in lirc_add_to_buf lirc_dev: remove double if ... else statement lirc_dev: merge three if statements in only one lirc_dev: remove CONFIG_COMPAT precompiler check lirc_dev: fix variable constant comparisons lirc_dev: fix error return value lirc_dev: extremely trivial comment style fix lirc_dev: fix potential segfault include: lirc: add set length and frequency ioctl options drivers/media/rc/lirc_dev.c | 297 +++++++++++++++++++++----------------------- include/media/lirc_dev.h | 12 ++ include/uapi/linux/lirc.h | 4 + 3 files changed, 156 insertions(+), 157 deletions(-) -- 2.8.1