diff options
author | Jonathan Cameron <jic23@kernel.org> | 2012-05-01 16:04:24 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-06-30 05:15:12 -0400 |
commit | 314be14bb89369b2164125b0ec3b24d85b407b62 (patch) | |
tree | 62c9346ece364c3a98f3a0321d1d10fb50f64e34 /drivers/iio/inkern.c | |
parent | 6a17a0768f77626046aa441843b318a00bac3800 (diff) |
iio: Rename _st_ functions to loose the bit that meant the staging version.
These were originally introduced when the plan was to have parallel
IIO cores in and out of staging with a slow move between them.
Now we have reached the point where the whole core has moved,
they need clearing up!
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/inkern.c')
-rw-r--r-- | drivers/iio/inkern.c | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/drivers/iio/inkern.c b/drivers/iio/inkern.c index d4760bd1e9b1..9a46ca61ef02 100644 --- a/drivers/iio/inkern.c +++ b/drivers/iio/inkern.c | |||
@@ -92,8 +92,7 @@ error_ret: | |||
92 | EXPORT_SYMBOL_GPL(iio_map_array_unregister); | 92 | EXPORT_SYMBOL_GPL(iio_map_array_unregister); |
93 | 93 | ||
94 | static const struct iio_chan_spec | 94 | static const struct iio_chan_spec |
95 | *iio_chan_spec_from_name(const struct iio_dev *indio_dev, | 95 | *iio_chan_spec_from_name(const struct iio_dev *indio_dev, const char *name) |
96 | const char *name) | ||
97 | { | 96 | { |
98 | int i; | 97 | int i; |
99 | const struct iio_chan_spec *chan = NULL; | 98 | const struct iio_chan_spec *chan = NULL; |
@@ -108,8 +107,7 @@ static const struct iio_chan_spec | |||
108 | } | 107 | } |
109 | 108 | ||
110 | 109 | ||
111 | struct iio_channel *iio_st_channel_get(const char *name, | 110 | struct iio_channel *iio_channel_get(const char *name, const char *channel_name) |
112 | const char *channel_name) | ||
113 | { | 111 | { |
114 | struct iio_map_internal *c_i = NULL, *c = NULL; | 112 | struct iio_map_internal *c_i = NULL, *c = NULL; |
115 | struct iio_channel *channel; | 113 | struct iio_channel *channel; |
@@ -145,16 +143,16 @@ struct iio_channel *iio_st_channel_get(const char *name, | |||
145 | 143 | ||
146 | return channel; | 144 | return channel; |
147 | } | 145 | } |
148 | EXPORT_SYMBOL_GPL(iio_st_channel_get); | 146 | EXPORT_SYMBOL_GPL(iio_channel_get); |
149 | 147 | ||
150 | void iio_st_channel_release(struct iio_channel *channel) | 148 | void iio_channel_release(struct iio_channel *channel) |
151 | { | 149 | { |
152 | iio_device_put(channel->indio_dev); | 150 | iio_device_put(channel->indio_dev); |
153 | kfree(channel); | 151 | kfree(channel); |
154 | } | 152 | } |
155 | EXPORT_SYMBOL_GPL(iio_st_channel_release); | 153 | EXPORT_SYMBOL_GPL(iio_channel_release); |
156 | 154 | ||
157 | struct iio_channel *iio_st_channel_get_all(const char *name) | 155 | struct iio_channel *iio_channel_get_all(const char *name) |
158 | { | 156 | { |
159 | struct iio_channel *chans; | 157 | struct iio_channel *chans; |
160 | struct iio_map_internal *c = NULL; | 158 | struct iio_map_internal *c = NULL; |
@@ -217,9 +215,9 @@ error_ret: | |||
217 | 215 | ||
218 | return ERR_PTR(ret); | 216 | return ERR_PTR(ret); |
219 | } | 217 | } |
220 | EXPORT_SYMBOL_GPL(iio_st_channel_get_all); | 218 | EXPORT_SYMBOL_GPL(iio_channel_get_all); |
221 | 219 | ||
222 | void iio_st_channel_release_all(struct iio_channel *channels) | 220 | void iio_channel_release_all(struct iio_channel *channels) |
223 | { | 221 | { |
224 | struct iio_channel *chan = &channels[0]; | 222 | struct iio_channel *chan = &channels[0]; |
225 | 223 | ||
@@ -229,9 +227,9 @@ void iio_st_channel_release_all(struct iio_channel *channels) | |||
229 | } | 227 | } |
230 | kfree(channels); | 228 | kfree(channels); |
231 | } | 229 | } |
232 | EXPORT_SYMBOL_GPL(iio_st_channel_release_all); | 230 | EXPORT_SYMBOL_GPL(iio_channel_release_all); |
233 | 231 | ||
234 | int iio_st_read_channel_raw(struct iio_channel *chan, int *val) | 232 | int iio_read_channel_raw(struct iio_channel *chan, int *val) |
235 | { | 233 | { |
236 | int val2, ret; | 234 | int val2, ret; |
237 | 235 | ||
@@ -248,9 +246,9 @@ err_unlock: | |||
248 | 246 | ||
249 | return ret; | 247 | return ret; |
250 | } | 248 | } |
251 | EXPORT_SYMBOL_GPL(iio_st_read_channel_raw); | 249 | EXPORT_SYMBOL_GPL(iio_read_channel_raw); |
252 | 250 | ||
253 | int iio_st_read_channel_scale(struct iio_channel *chan, int *val, int *val2) | 251 | int iio_read_channel_scale(struct iio_channel *chan, int *val, int *val2) |
254 | { | 252 | { |
255 | int ret; | 253 | int ret; |
256 | 254 | ||
@@ -269,10 +267,9 @@ err_unlock: | |||
269 | 267 | ||
270 | return ret; | 268 | return ret; |
271 | } | 269 | } |
272 | EXPORT_SYMBOL_GPL(iio_st_read_channel_scale); | 270 | EXPORT_SYMBOL_GPL(iio_read_channel_scale); |
273 | 271 | ||
274 | int iio_st_get_channel_type(struct iio_channel *chan, | 272 | int iio_get_channel_type(struct iio_channel *chan, enum iio_chan_type *type) |
275 | enum iio_chan_type *type) | ||
276 | { | 273 | { |
277 | int ret = 0; | 274 | int ret = 0; |
278 | /* Need to verify underlying driver has not gone away */ | 275 | /* Need to verify underlying driver has not gone away */ |
@@ -289,4 +286,4 @@ err_unlock: | |||
289 | 286 | ||
290 | return ret; | 287 | return ret; |
291 | } | 288 | } |
292 | EXPORT_SYMBOL_GPL(iio_st_get_channel_type); | 289 | EXPORT_SYMBOL_GPL(iio_get_channel_type); |