aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/au0828
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2012-12-04 10:46:38 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-12-17 11:34:27 -0500
commit5b7d8de7d2328f7b25fe4645eafee7e48f9b7df3 (patch)
tree8d5783cb90d370b8bcb60aa38801aaa02b5ecd73 /drivers/media/usb/au0828
parent8a4e786660f512b029b56d94d1b8f0201e67aab3 (diff)
[media] au0828: break au0828_card_setup() down into smaller functions
Pull the analog frontend setup code out of au0828_card_setup into its own seperate function, au0828_card_analog_fe_setup(). Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/au0828')
-rw-r--r--drivers/media/usb/au0828/au0828-cards.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/drivers/media/usb/au0828/au0828-cards.c b/drivers/media/usb/au0828/au0828-cards.c
index 7b5b7420066d..88e35dfa33d4 100644
--- a/drivers/media/usb/au0828/au0828-cards.c
+++ b/drivers/media/usb/au0828/au0828-cards.c
@@ -185,14 +185,11 @@ static void hauppauge_eeprom(struct au0828_dev *dev, u8 *eeprom_data)
185 __func__, tv.model); 185 __func__, tv.model);
186} 186}
187 187
188void au0828_card_analog_fe_setup(struct au0828_dev *dev);
189
188void au0828_card_setup(struct au0828_dev *dev) 190void au0828_card_setup(struct au0828_dev *dev)
189{ 191{
190 static u8 eeprom[256]; 192 static u8 eeprom[256];
191#ifdef CONFIG_VIDEO_AU0828_V4L2
192 struct tuner_setup tun_setup;
193 struct v4l2_subdev *sd;
194 unsigned int mode_mask = T_ANALOG_TV;
195#endif
196 193
197 dprintk(1, "%s()\n", __func__); 194 dprintk(1, "%s()\n", __func__);
198 195
@@ -213,7 +210,16 @@ void au0828_card_setup(struct au0828_dev *dev)
213 break; 210 break;
214 } 211 }
215 212
213 au0828_card_analog_fe_setup(dev);
214}
215
216void au0828_card_analog_fe_setup(struct au0828_dev *dev)
217{
216#ifdef CONFIG_VIDEO_AU0828_V4L2 218#ifdef CONFIG_VIDEO_AU0828_V4L2
219 struct tuner_setup tun_setup;
220 struct v4l2_subdev *sd;
221 unsigned int mode_mask = T_ANALOG_TV;
222
217 if (AUVI_INPUT(0).type != AU0828_VMUX_UNDEFINED) { 223 if (AUVI_INPUT(0).type != AU0828_VMUX_UNDEFINED) {
218 /* Load the analog demodulator driver (note this would need to 224 /* Load the analog demodulator driver (note this would need to
219 be abstracted out if we ever need to support a different 225 be abstracted out if we ever need to support a different