summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2008-02-09 00:02:57 -0600
committerMike Isely <isely@pobox.com>2008-02-09 00:02:57 -0600
commit68b4313913b7abb511a7d1fd565f8fb52e04d173 (patch)
tree614f3d7dba1a35476c358371495aef49f295c5e9 /linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
parent492871136f3dbe02e441ad5992c20e8d2a529678 (diff)
downloadmediapointer-dvb-s2-68b4313913b7abb511a7d1fd565f8fb52e04d173.tar.gz
mediapointer-dvb-s2-68b4313913b7abb511a7d1fd565f8fb52e04d173.tar.bz2
pvrusb2: Make LED control into a device-specific attribute
From: Mike Isely <isely@pobox.com> The pvrusb2 driver has used hardcoded logic to control the LED on the device. However this is really Hauppauge-specific behavior. This change defines a new device attribute for LED control and sets things up appropriately for Hauppauge devices. Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
index ae0b13d4e..a6f777cd3 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
@@ -269,6 +269,9 @@ struct pvr2_hdw {
PVR2_STATE_xxxx */
unsigned int master_state;
+ /* True if device led is currently on */
+ int led_on;
+
/* True if states must be re-evaluated */
int state_stale;