diff options
author | Evgeniy Polyakov <johnpol@2ka.mipt.ru> | 2005-12-06 05:38:27 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-23 20:28:11 -0500 |
commit | ccd6994000fb6d08ee1be8a7fa20c8d602a2267d (patch) | |
tree | 88badd14da5f2c0593a88a351db6a664c3b6fbb8 /drivers/w1/w1.h | |
parent | a1a051b1870f9e4607526c7e403abab06526c6d9 (diff) |
[PATCH] W1: Change the type 'unsigned long' member of 'struct w1_bus_master' to 'void *'.
Signed-off-by: Ben Gardner <bgardner@wabtec.com>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/w1/w1.h')
-rw-r--r-- | drivers/w1/w1.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/w1/w1.h b/drivers/w1/w1.h index d8900780c3bf..b62e771e5709 100644 --- a/drivers/w1/w1.h +++ b/drivers/w1/w1.h | |||
@@ -80,7 +80,7 @@ struct w1_slave | |||
80 | struct completion released; | 80 | struct completion released; |
81 | }; | 81 | }; |
82 | 82 | ||
83 | typedef void (* w1_slave_found_callback)(unsigned long, u64); | 83 | typedef void (* w1_slave_found_callback)(void *, u64); |
84 | 84 | ||
85 | 85 | ||
86 | /** | 86 | /** |
@@ -93,16 +93,16 @@ typedef void (* w1_slave_found_callback)(unsigned long, u64); | |||
93 | struct w1_bus_master | 93 | struct w1_bus_master |
94 | { | 94 | { |
95 | /** the first parameter in all the functions below */ | 95 | /** the first parameter in all the functions below */ |
96 | unsigned long data; | 96 | void *data; |
97 | 97 | ||
98 | /** | 98 | /** |
99 | * Sample the line level | 99 | * Sample the line level |
100 | * @return the level read (0 or 1) | 100 | * @return the level read (0 or 1) |
101 | */ | 101 | */ |
102 | u8 (*read_bit)(unsigned long); | 102 | u8 (*read_bit)(void *); |
103 | 103 | ||
104 | /** Sets the line level */ | 104 | /** Sets the line level */ |
105 | void (*write_bit)(unsigned long, u8); | 105 | void (*write_bit)(void *, u8); |
106 | 106 | ||
107 | /** | 107 | /** |
108 | * touch_bit is the lowest-level function for devices that really | 108 | * touch_bit is the lowest-level function for devices that really |
@@ -111,42 +111,42 @@ struct w1_bus_master | |||
111 | * touch_bit(1) = write-1 / read cycle | 111 | * touch_bit(1) = write-1 / read cycle |
112 | * @return the bit read (0 or 1) | 112 | * @return the bit read (0 or 1) |
113 | */ | 113 | */ |
114 | u8 (*touch_bit)(unsigned long, u8); | 114 | u8 (*touch_bit)(void *, u8); |
115 | 115 | ||
116 | /** | 116 | /** |
117 | * Reads a bytes. Same as 8 touch_bit(1) calls. | 117 | * Reads a bytes. Same as 8 touch_bit(1) calls. |
118 | * @return the byte read | 118 | * @return the byte read |
119 | */ | 119 | */ |
120 | u8 (*read_byte)(unsigned long); | 120 | u8 (*read_byte)(void *); |
121 | 121 | ||
122 | /** | 122 | /** |
123 | * Writes a byte. Same as 8 touch_bit(x) calls. | 123 | * Writes a byte. Same as 8 touch_bit(x) calls. |
124 | */ | 124 | */ |
125 | void (*write_byte)(unsigned long, u8); | 125 | void (*write_byte)(void *, u8); |
126 | 126 | ||
127 | /** | 127 | /** |
128 | * Same as a series of read_byte() calls | 128 | * Same as a series of read_byte() calls |
129 | * @return the number of bytes read | 129 | * @return the number of bytes read |
130 | */ | 130 | */ |
131 | u8 (*read_block)(unsigned long, u8 *, int); | 131 | u8 (*read_block)(void *, u8 *, int); |
132 | 132 | ||
133 | /** Same as a series of write_byte() calls */ | 133 | /** Same as a series of write_byte() calls */ |
134 | void (*write_block)(unsigned long, const u8 *, int); | 134 | void (*write_block)(void *, const u8 *, int); |
135 | 135 | ||
136 | /** | 136 | /** |
137 | * Combines two reads and a smart write for ROM searches | 137 | * Combines two reads and a smart write for ROM searches |
138 | * @return bit0=Id bit1=comp_id bit2=dir_taken | 138 | * @return bit0=Id bit1=comp_id bit2=dir_taken |
139 | */ | 139 | */ |
140 | u8 (*triplet)(unsigned long, u8); | 140 | u8 (*triplet)(void *, u8); |
141 | 141 | ||
142 | /** | 142 | /** |
143 | * long write-0 with a read for the presence pulse detection | 143 | * long write-0 with a read for the presence pulse detection |
144 | * @return -1=Error, 0=Device present, 1=No device present | 144 | * @return -1=Error, 0=Device present, 1=No device present |
145 | */ | 145 | */ |
146 | u8 (*reset_bus)(unsigned long); | 146 | u8 (*reset_bus)(void *); |
147 | 147 | ||
148 | /** Really nice hardware can handles the ROM searches */ | 148 | /** Really nice hardware can handles the ROM searches */ |
149 | void (*search)(unsigned long, w1_slave_found_callback); | 149 | void (*search)(void *, w1_slave_found_callback); |
150 | }; | 150 | }; |
151 | 151 | ||
152 | #define W1_MASTER_NEED_EXIT 0 | 152 | #define W1_MASTER_NEED_EXIT 0 |