aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/nosy-user.h
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2010-07-27 04:28:30 -0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2010-07-27 05:04:10 -0400
commitb5e47729043c9224b21ab3dc7c63e8a38dbb4923 (patch)
tree2acf6aa0f441c3a6b8812c8c5eb3b97a74f98056 /drivers/firewire/nosy-user.h
parent286468210d83ce0ca1e37e346ed9f4457a161650 (diff)
firewire: nosy: misc cleanups
Extend copyright note to 2007, c.f. Kristian's git log. Includes: - replace some <asm/*.h> by <linux/*.h> - add required indirectly included <linux/spinlock.h> - order alphabetically Coding style related changes: - change to utf8 - normalize whitespace - normalize comment style - remove usages of __FUNCTION__ - remove an unnecessary cast from void * Const and static declarations: - driver_name is not const in pci_driver.name, drop const qualifier - driver_name can be taken from KBUILD_MODNAME - the global variable minors[] can and should be static - constify struct file_operations instance Data types: - Remove unused struct member struct packet.code. struct packet is only used for driver-internal bookkeeping; it does not appear on the wire or in DMA programs or the userspace ABI. Hence the unused member .code can be removed without worries. Preprocessor macros: - unroll a preprocessor macro that containd a return - use list_for_each_entry Printk: - add missing terminating \n in some format strings Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/nosy-user.h')
-rw-r--r--drivers/firewire/nosy-user.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/firewire/nosy-user.h b/drivers/firewire/nosy-user.h
index c9a1682ab45e..ebef97f4ecf9 100644
--- a/drivers/firewire/nosy-user.h
+++ b/drivers/firewire/nosy-user.h
@@ -1,8 +1,8 @@
1#ifndef __nosy_user_h 1#ifndef __nosy_user_h
2#define __nosy_user_h 2#define __nosy_user_h
3 3
4#include <asm/ioctl.h> 4#include <linux/ioctl.h>
5#include <asm/types.h> 5#include <linux/types.h>
6 6
7#define NOSY_IOC_GET_STATS _IOR('&', 0, struct nosy_stats) 7#define NOSY_IOC_GET_STATS _IOR('&', 0, struct nosy_stats)
8#define NOSY_IOC_START _IO('&', 1) 8#define NOSY_IOC_START _IO('&', 1)
@@ -10,11 +10,11 @@
10#define NOSY_IOC_FILTER _IOW('&', 2, __u32) 10#define NOSY_IOC_FILTER _IOW('&', 2, __u32)
11 11
12struct nosy_stats { 12struct nosy_stats {
13 __u32 total_packet_count; 13 __u32 total_packet_count;
14 __u32 lost_packet_count; 14 __u32 lost_packet_count;
15}; 15};
16 16
17/* 17/*
18 * Format of packets returned from the kernel driver: 18 * Format of packets returned from the kernel driver:
19 * 19 *
20 * quadlet with timestamp (microseconds) 20 * quadlet with timestamp (microseconds)