Skip to content

Instantly share code, notes, and snippets.

@ISTweak
Created February 28, 2014 22:50
Show Gist options
  • Save ISTweak/9281692 to your computer and use it in GitHub Desktop.
Save ISTweak/9281692 to your computer and use it in GitHub Desktop.
felica_uart_sync
--- a/include/linux/felica.h Sat Mar 01 07:44:14 2014
+++ b/include/linux/felica.h Sat Mar 01 07:05:39 2014
@@ -100,7 +100,7 @@
int felica_uart_close(struct inode *inode, struct file *file);
ssize_t felica_uart_read(struct file *file, char __user *buf, size_t len, loff_t *ppos);
ssize_t felica_uart_write(struct file *file, const char __user *data, size_t len, loff_t *ppos);
-int felica_uart_sync(struct file *file, int datasync);
+int felica_uart_sync(struct file *file, loff_t start, loff_t end, int datasync);
long felica_uart_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
void felica_nl_init(void);
void felica_nl_exit(void);
--- a/drivers/felicafelica.c Sat Mar 01 07:44:36 2014
+++ b/drivers/felica/felica.c Sat Mar 01 07:09:18 2014
@@ -374,7 +374,7 @@
/*
* sync operation
*/
-int felica_uart_sync(struct file *file, int datasync)
+int felica_uart_sync(struct file *file, loff_t start, loff_t end, int datasync)
{
FELICA_LOG_DEBUG("[FELICA_DD] %s START", __func__);
FELICA_LOG_DEBUG("[FELICA_DD] %s END", __func__);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment