Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219764
b: refs/heads/master
c: e0ac7da
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Greg Kroah-Hartman committed Sep 5, 2010
1 parent 7d7d477 commit 6fcf892
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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: 430eb1baae63fd2ab270679c21d16cf5f4f8dbb4
refs/heads/master: e0ac7da044deb92b1601c58178bfa7fb5776c1c2
4 changes: 2 additions & 2 deletions trunk/drivers/staging/lirc/lirc_imon.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ static int display_close(struct inode *inode, struct file *file)
struct imon_context *context = NULL;
int retval = 0;

context = (struct imon_context *)file->private_data;
context = file->private_data;

if (!context) {
err("%s: no context for device", __func__);
Expand Down Expand Up @@ -380,7 +380,7 @@ static ssize_t vfd_write(struct file *file, const char *buf,
0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF };
int *data_buf;

context = (struct imon_context *)file->private_data;
context = file->private_data;
if (!context) {
err("%s: no context for device", __func__);
return -ENODEV;
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/staging/lirc/lirc_zilog.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ static loff_t lseek(struct file *filep, loff_t offset, int orig)
/* copied from lirc_dev */
static ssize_t read(struct file *filep, char *outbuf, size_t n, loff_t *ppos)
{
struct IR *ir = (struct IR *)filep->private_data;
struct IR *ir = filep->private_data;
unsigned char buf[ir->buf.chunk_size];
int ret = 0, written = 0;
DECLARE_WAITQUEUE(wait, current);
Expand Down Expand Up @@ -898,7 +898,7 @@ static int send_code(struct IR *ir, unsigned int code, unsigned int key)
static ssize_t write(struct file *filep, const char *buf, size_t n,
loff_t *ppos)
{
struct IR *ir = (struct IR *)filep->private_data;
struct IR *ir = filep->private_data;
size_t i;
int failures = 0;

Expand Down Expand Up @@ -972,7 +972,7 @@ static ssize_t write(struct file *filep, const char *buf, size_t n,
/* copied from lirc_dev */
static unsigned int poll(struct file *filep, poll_table *wait)
{
struct IR *ir = (struct IR *)filep->private_data;
struct IR *ir = filep->private_data;
unsigned int ret;

dprintk("poll called\n");
Expand All @@ -994,7 +994,7 @@ static unsigned int poll(struct file *filep, poll_table *wait)

static long ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
{
struct IR *ir = (struct IR *)filep->private_data;
struct IR *ir = filep->private_data;
int result;
unsigned long mode, features = 0;

Expand Down Expand Up @@ -1086,7 +1086,7 @@ static int open(struct inode *node, struct file *filep)
static int close(struct inode *node, struct file *filep)
{
/* find our IR struct */
struct IR *ir = (struct IR *)filep->private_data;
struct IR *ir = filep->private_data;
if (ir == NULL) {
zilog_error("close: no private_data attached to the file!\n");
return -ENODEV;
Expand Down

0 comments on commit 6fcf892

Please sign in to comment.