forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/usb/dvb-usb-v2/mxl111sf.h
....@@ -1,11 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2010-2014 Michael Krufky (mkrufky@linuxtv.org)
34 *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms of the GNU General Public License as published by the Free
6
- * Software Foundation, version 2.
7
- *
8
- * see Documentation/media/dvb-drivers/dvb-usb.rst for more information
5
+ * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
96 */
107
118 #ifndef _DVB_USB_MXL111SF_H_
....@@ -52,6 +49,12 @@
5249 int (*fe_sleep)(struct dvb_frontend *);
5350 };
5451
52
+enum mxl111sf_pads {
53
+ MXL111SF_PAD_RF_INPUT,
54
+ MXL111SF_PAD_OUTPUT,
55
+ MXL111SF_NUM_PADS
56
+};
57
+
5558 struct mxl111sf_state {
5659 struct dvb_usb_device *d;
5760
....@@ -94,7 +97,7 @@
9497 struct mutex msg_lock;
9598 #ifdef CONFIG_MEDIA_CONTROLLER_DVB
9699 struct media_entity tuner;
97
- struct media_pad tuner_pads[2];
100
+ struct media_pad tuner_pads[MXL111SF_NUM_PADS];
98101 #endif
99102 };
100103