summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/cx231xx
diff options
context:
space:
mode:
authorBrad Love <brad@nextdimension.cc>2018-03-06 20:15:00 +0100
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-07 10:01:36 +0100
commit1dd2ce0e866c5ced6ba66360e24ed3b141112e26 (patch)
tree4693d8196f72b2eeb4f1bd1dc92b0febc1695547 /drivers/media/usb/cx231xx
parentmedia: cx231xx: Set mfe_shared if second frontend found (diff)
downloadlinux-1dd2ce0e866c5ced6ba66360e24ed3b141112e26.tar.xz
linux-1dd2ce0e866c5ced6ba66360e24ed3b141112e26.zip
media: cx231xx: Use constant instead of hard code for max
Nit regarding hard coded value. Signed-off-by: Brad Love <brad@nextdimension.cc> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/cx231xx')
-rw-r--r--drivers/media/usb/cx231xx/cx231xx-dvb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/usb/cx231xx/cx231xx-dvb.c b/drivers/media/usb/cx231xx/cx231xx-dvb.c
index 3a5ed2a8209b..d945ae51851b 100644
--- a/drivers/media/usb/cx231xx/cx231xx-dvb.c
+++ b/drivers/media/usb/cx231xx/cx231xx-dvb.c
@@ -53,9 +53,10 @@ DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
#define CX231XX_DVB_NUM_BUFS 5
#define CX231XX_DVB_MAX_PACKETSIZE 564
#define CX231XX_DVB_MAX_PACKETS 64
+#define CX231XX_DVB_MAX_FRONTENDS 2
struct cx231xx_dvb {
- struct dvb_frontend *frontend[2];
+ struct dvb_frontend *frontend[CX231XX_DVB_MAX_FRONTENDS];
/* feed count management */
struct mutex lock;