Skip to content

Commit

Permalink
Remove read function to prevent warning
Browse files Browse the repository at this point in the history
Update Makefile to do better cleaning
  • Loading branch information
Erwin Rol committed Aug 16, 2006
1 parent 972aaf7 commit 3bfaeb8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
7 changes: 5 additions & 2 deletions Makefile
Expand Up @@ -18,7 +18,10 @@ default:
endif

clean:
rm *.o *.ko
rm dmx_usb_test
rm -f *.o *.ko
rm -f dmx_usb_test
rm -f dmx_usb.mod.c
rm -f .dmx_usb.*
rm -rf .tmp_versions


11 changes: 8 additions & 3 deletions dmx_usb.c
Expand Up @@ -14,7 +14,6 @@
* $Id: dmx_usb.c 41 2004-09-14 23:35:25Z erwin $
*/

#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
Expand All @@ -40,7 +39,7 @@


/* Version Information */
#define DRIVER_VERSION "v0.1.20060116"
#define DRIVER_VERSION "v0.1.20060816"
#define DRIVER_AUTHOR "Erwin Rol, erwin@erwinrol.com"
#define DRIVER_DESC "DMX USB Driver"

Expand Down Expand Up @@ -95,7 +94,7 @@ struct dmx_usb_device {
static DECLARE_MUTEX (disconnect_sem);

/* local function prototypes */
static ssize_t dmx_usb_read (struct file *file, char *buffer, size_t count, loff_t *ppos);
//static ssize_t dmx_usb_read (struct file *file, char *buffer, size_t count, loff_t *ppos);
static ssize_t dmx_usb_write (struct file *file, const char *buffer, size_t count, loff_t *ppos);
static int dmx_usb_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg);
static int dmx_usb_open (struct inode *inode, struct file *file);
Expand Down Expand Up @@ -359,6 +358,10 @@ static int dmx_usb_release (struct inode *inode, struct file *file)
return retval;
}

#if 0

Read is not yet supported

/**
*/
static ssize_t dmx_usb_read (struct file *file, char *buffer, size_t count, loff_t *ppos)
Expand Down Expand Up @@ -401,6 +404,8 @@ static ssize_t dmx_usb_read (struct file *file, char *buffer, size_t count, loff
return retval;
}

#endif

static __u16 dmx_usb_get_status(struct dmx_usb_device* dev)
{
int retval = 0;
Expand Down

0 comments on commit 3bfaeb8

Please sign in to comment.