Make all the remaining ops structure constants.

This excludes the mixer for now since it requires a change to the
public headers.

Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
This commit is contained in:
Diego E. 'Flameeyes' Pettenò 2008-11-21 19:43:33 +01:00
parent 8b14625cc3
commit 2eaf9403d2
8 changed files with 12 additions and 12 deletions

View file

@ -209,7 +209,7 @@ static ssize_t snd_timer_hw_read(snd_timer_t *handle, void *buffer, size_t size)
return result;
}
static snd_timer_ops_t snd_timer_hw_ops = {
static const snd_timer_ops_t snd_timer_hw_ops = {
.close = snd_timer_hw_close,
.nonblock = snd_timer_hw_nonblock,
.async = snd_timer_hw_async,

View file

@ -45,7 +45,7 @@ struct _snd_timer {
snd_timer_type_t type;
int mode;
int poll_fd;
snd_timer_ops_t *ops;
const snd_timer_ops_t *ops;
void *private_data;
struct list_head async_handlers;
};

View file

@ -81,7 +81,7 @@ static int snd_timer_query_hw_status(snd_timer_query_t *handle, snd_timer_gstatu
return 0;
}
static snd_timer_query_ops_t snd_timer_query_hw_ops = {
static const snd_timer_query_ops_t snd_timer_query_hw_ops = {
.close = snd_timer_query_hw_close,
.next_device = snd_timer_query_hw_next_device,
.info = snd_timer_query_hw_info,