Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249269
b: refs/heads/master
c: d713680
h: refs/heads/master
i:
  249267: 5b8a7c8
v: v3
  • Loading branch information
Greg Dietsche authored and Greg Kroah-Hartman committed May 3, 2011
1 parent 6738bac commit 1baad6e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 29 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: 3b70a26bcbe05db12965de702368ca0b9ec945f1
refs/heads/master: d713680f2a7a91864e3722420222952f30a0346e
27 changes: 14 additions & 13 deletions trunk/drivers/staging/lirc/lirc_parallel.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,17 +568,17 @@ static void set_use_dec(void *data)
}

static struct lirc_driver driver = {
.name = LIRC_DRIVER_NAME,
.minor = -1,
.code_length = 1,
.sample_rate = 0,
.data = NULL,
.add_to_buf = NULL,
.set_use_inc = set_use_inc,
.set_use_dec = set_use_dec,
.fops = &lirc_fops,
.dev = NULL,
.owner = THIS_MODULE,
.name = LIRC_DRIVER_NAME,
.minor = -1,
.code_length = 1,
.sample_rate = 0,
.data = NULL,
.add_to_buf = NULL,
.set_use_inc = set_use_inc,
.set_use_dec = set_use_dec,
.fops = &lirc_fops,
.dev = NULL,
.owner = THIS_MODULE,
};

static struct platform_device *lirc_parallel_dev;
Expand All @@ -594,7 +594,7 @@ static int __devexit lirc_parallel_remove(struct platform_device *dev)
}

static int lirc_parallel_suspend(struct platform_device *dev,
pm_message_t state)
pm_message_t state)
{
return 0;
}
Expand Down Expand Up @@ -647,7 +647,8 @@ static int __init lirc_parallel_init(void)

result = platform_driver_register(&lirc_parallel_driver);
if (result) {
printk("platform_driver_register returned %d\n", result);
printk(KERN_NOTICE "platform_driver_register"
" returned %d\n", result);
return result;
}

Expand Down
30 changes: 15 additions & 15 deletions trunk/drivers/staging/lirc/lirc_sir.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ static unsigned int duty_cycle = 50; /* duty cycle of 50% */
#endif
#ifndef LIRC_PORT
/* for external dongles, default to com1 */
#if defined(LIRC_SIR_ACTISYS_ACT200L) || \
defined(LIRC_SIR_ACTISYS_ACT220L) || \
defined(LIRC_SIR_TEKRAM)
#if defined(LIRC_SIR_ACTISYS_ACT200L) || \
defined(LIRC_SIR_ACTISYS_ACT220L) || \
defined(LIRC_SIR_TEKRAM)
#define LIRC_PORT 0x3f8
#else
/* onboard sir ports are typically com3 */
Expand Down Expand Up @@ -467,25 +467,25 @@ static const struct file_operations lirc_fops = {

static int set_use_inc(void *data)
{
return 0;
return 0;
}

static void set_use_dec(void *data)
{
}

static struct lirc_driver driver = {
.name = LIRC_DRIVER_NAME,
.minor = -1,
.code_length = 1,
.sample_rate = 0,
.data = NULL,
.add_to_buf = NULL,
.set_use_inc = set_use_inc,
.set_use_dec = set_use_dec,
.fops = &lirc_fops,
.dev = NULL,
.owner = THIS_MODULE,
.name = LIRC_DRIVER_NAME,
.minor = -1,
.code_length = 1,
.sample_rate = 0,
.data = NULL,
.add_to_buf = NULL,
.set_use_inc = set_use_inc,
.set_use_dec = set_use_dec,
.fops = &lirc_fops,
.dev = NULL,
.owner = THIS_MODULE,
};


Expand Down

0 comments on commit 1baad6e

Please sign in to comment.