Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254609
b: refs/heads/master
c: 04f561f
h: refs/heads/master
i:
  254607: 92fc128
v: v3
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed Jun 11, 2011
1 parent ca95693 commit 5da08e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e5fd0f7db3c3ba127dc1c51f0a0fe31d89db27cc
refs/heads/master: 04f561ff8714c89733dcf1d178b64d100d5a084a
11 changes: 2 additions & 9 deletions trunk/drivers/staging/lirc/lirc_sir.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,23 +739,16 @@ static void send_space(unsigned long len)
static void send_pulse(unsigned long len)
{
long bytes_out = len / TIME_CONST;
long time_left;

time_left = (long)len - (long)bytes_out * (long)TIME_CONST;
if (bytes_out == 0) {
if (bytes_out == 0)
bytes_out++;
time_left = 0;
}

while (bytes_out--) {
outb(PULSE, io + UART_TX);
/* FIXME treba seriozne cakanie z char/serial.c */
while (!(inb(io + UART_LSR) & UART_LSR_THRE))
;
}
#if 0
if (time_left > 0)
safe_udelay(time_left);
#endif
}
#endif

Expand Down

0 comments on commit 5da08e8

Please sign in to comment.