media: rc: Remove init_ir_raw_event and DEFINE_IR_RAW_EVENT macros
This can be done with c99 initializers, which makes the code cleaner
and more transparent. It does require gcc 4.6, because of this bug
in earlier versions:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676
Since commit cafa0010cd
("Raise the minimum required gcc version to
4.6"), this is the case.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
c5f14af0d8
commit
183e19f5b9
@@ -282,7 +282,7 @@ static int fintek_cmdsize(u8 cmd, u8 subcmd)
|
||||
/* process ir data stored in driver buffer */
|
||||
static void fintek_process_rx_ir_data(struct fintek_dev *fintek)
|
||||
{
|
||||
DEFINE_IR_RAW_EVENT(rawir);
|
||||
struct ir_raw_event rawir = {};
|
||||
u8 sample;
|
||||
bool event = false;
|
||||
int i;
|
||||
@@ -314,7 +314,6 @@ static void fintek_process_rx_ir_data(struct fintek_dev *fintek)
|
||||
break;
|
||||
case PARSE_IRDATA:
|
||||
fintek->rem--;
|
||||
init_ir_raw_event(&rawir);
|
||||
rawir.pulse = ((sample & BUF_PULSE_BIT) != 0);
|
||||
rawir.duration = US_TO_NS((sample & BUF_SAMPLE_MASK)
|
||||
* CIR_SAMPLE_PERIOD);
|
||||
|
Reference in New Issue
Block a user