diff options
author | Mike Isely <isely@pobox.com> | 2006-08-08 08:10:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-09-26 10:53:20 -0400 |
commit | 89ebd63fdddc83fabb5cc751d0e59a1350c1627c (patch) | |
tree | c5d3956965dbb8b62cf9f06f480b06a7e58274fe /drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | |
parent | e95a191566685530ef49b702bbce0a33c57c3136 (diff) |
V4L/DVB (4376): Make it possible for run-time calculation of control min/max in pvrusb2
The internal control implementation in the pvrusb2 driver normally
encodes integer range limits using literal values in a const
structure. This change adds two function pointers, which if not null
will be called through in order to determine integer min / max
values.
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h b/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h index 14800b69e60c..74c125ad4071 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | |||
@@ -80,6 +80,8 @@ struct pvr2_ctl_info { | |||
80 | 80 | ||
81 | /* Control's implementation */ | 81 | /* Control's implementation */ |
82 | pvr2_ctlf_get_value get_value; /* Get its value */ | 82 | pvr2_ctlf_get_value get_value; /* Get its value */ |
83 | pvr2_ctlf_get_value get_min_value; /* Get minimum allowed value */ | ||
84 | pvr2_ctlf_get_value get_max_value; /* Get maximum allowed value */ | ||
83 | pvr2_ctlf_set_value set_value; /* Set its value */ | 85 | pvr2_ctlf_set_value set_value; /* Set its value */ |
84 | pvr2_ctlf_val_to_sym val_to_sym; /* Custom convert value->symbol */ | 86 | pvr2_ctlf_val_to_sym val_to_sym; /* Custom convert value->symbol */ |
85 | pvr2_ctlf_sym_to_val sym_to_val; /* Custom convert symbol->value */ | 87 | pvr2_ctlf_sym_to_val sym_to_val; /* Custom convert symbol->value */ |