diff options
author | Mike Isely <isely@pobox.com> | 2006-08-08 09:10:07 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-09-26 11:53:20 -0300 |
commit | 89ebd63fdddc83fabb5cc751d0e59a1350c1627c (patch) | |
tree | c5d3956965dbb8b62cf9f06f480b06a7e58274fe /drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | |
parent | e95a191566685530ef49b702bbce0a33c57c3136 (diff) | |
download | kernel_samsung_smdk4412-89ebd63fdddc83fabb5cc751d0e59a1350c1627c.zip kernel_samsung_smdk4412-89ebd63fdddc83fabb5cc751d0e59a1350c1627c.tar.gz kernel_samsung_smdk4412-89ebd63fdddc83fabb5cc751d0e59a1350c1627c.tar.bz2 |
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 14800b6..74c125a 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 { /* Control's implementation */ pvr2_ctlf_get_value get_value; /* Get its value */ + pvr2_ctlf_get_value get_min_value; /* Get minimum allowed value */ + pvr2_ctlf_get_value get_max_value; /* Get maximum allowed value */ pvr2_ctlf_set_value set_value; /* Set its value */ pvr2_ctlf_val_to_sym val_to_sym; /* Custom convert value->symbol */ pvr2_ctlf_sym_to_val sym_to_val; /* Custom convert symbol->value */ |