Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] small hp_sdc_rtc cleanup: use no_llseek

Use no_llseek function.

Signed-off-by: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Cc: "Brian S. Julin" <bri@calyx.com>
Acked-by: Vojtech Pavlik <vojtech@suse.cz>
Cc: Dmitry Torokhov <dtor_core@ameritech.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Marcelo Tosatti and committed by
Linus Torvalds
70c00ba0 5998bf1d

+1 -8
+1 -8
drivers/input/misc/hp_sdc_rtc.c
··· 60 60 61 61 static DECLARE_WAIT_QUEUE_HEAD(hp_sdc_rtc_wait); 62 62 63 - static loff_t hp_sdc_rtc_llseek(struct file *file, loff_t offset, int origin); 64 - 65 63 static ssize_t hp_sdc_rtc_read(struct file *file, char *buf, 66 64 size_t count, loff_t *ppos); 67 65 ··· 385 387 return 0; 386 388 } 387 389 388 - static loff_t hp_sdc_rtc_llseek(struct file *file, loff_t offset, int origin) 389 - { 390 - return -ESPIPE; 391 - } 392 - 393 390 static ssize_t hp_sdc_rtc_read(struct file *file, char *buf, 394 391 size_t count, loff_t *ppos) { 395 392 ssize_t retval; ··· 672 679 673 680 static struct file_operations hp_sdc_rtc_fops = { 674 681 .owner = THIS_MODULE, 675 - .llseek = hp_sdc_rtc_llseek, 682 + .llseek = no_llseek, 676 683 .read = hp_sdc_rtc_read, 677 684 .poll = hp_sdc_rtc_poll, 678 685 .ioctl = hp_sdc_rtc_ioctl,