4d270cfb36
According with CodingStyle, drivers shouldn't use typedef, except on very special cases. This is not the case of saa7164. So, convert all usecases to struct/enum. After changing the saa7164-types.h, all we need to do is to run those scripts to fix all occurrences of the bad types and double check/fix everything that might be broken after the test (of course, I did a small script to generate those scripts). for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmBusType_t/enum tmBusType/; print " \>a \&\& mv a tmBusType; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResCmd_t/enum tmComResCmd/; print " \>a \&\& mv a tmComResCmd; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResTermType_t/enum tmComResTermType/; print " \>a \&\& mv a tmComResTermType; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmBufferFlag_t/enum tmBufferFlag/; print " \>a \&\& mv a tmBufferFlag; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResHWDescr_t/struct tmComResHWDescr/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResInterfaceDescr_t/struct tmComResInterfaceDescr/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResBusDescr_t/struct tmComResBusDescr/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmBusType_t/struct tmBusType/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResBusInfo_t/struct tmComResBusInfo/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResInfo_t/struct tmComResInfo/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResCmd_t/struct tmComResCmd/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmDescriptor_t/struct tmDescriptor/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResDescrHeader_t/struct tmComResDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResExtDevDescrHeader_t/struct tmComResExtDevDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResGPIO_t/struct tmComResGPIO/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResPathDescrHeader_t/struct tmComResPathDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResTermType_t/struct tmComResTermType/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResAntTermDescrHeader_t/struct tmComResAntTermDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResTunerDescrHeader_t/struct tmComResTunerDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmBufferFlag_t/struct tmBufferFlag/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmBuffer_t/struct tmBuffer/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmHWStreamParameters_t/struct tmHWStreamParameters/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmStreamParameters_t/struct tmStreamParameters/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResDMATermDescrHeader_t/struct tmComResDMATermDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResTSFormatDescrHeader_t/struct tmComResTSFormatDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResSelDescrHeader_t/struct tmComResSelDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResProcDescrHeader_t/struct tmComResProcDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResEncVideoBitRate_t/struct tmComResEncVideoBitRate/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResEncVideoInputAspectRatio_t/struct tmComResEncVideoInputAspectRatio/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResEncVideoGopStructure_t/struct tmComResEncVideoGopStructure/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResEncoderDescrHeader_t/struct tmComResEncoderDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResAFeatureDescrHeader_t/struct tmComResAFeatureDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResAudioDefaults_t/struct tmComResAudioDefaults/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResEncAudioBitRate_t/struct tmComResEncAudioBitRate/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResTunerStandard_t/struct tmComResTunerStandard/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResTunerStandardAuto_t/struct tmComResTunerStandardAuto/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResPSFormatDescrHeader_t/struct tmComResPSFormatDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResVBIFormatDescrHeader_t/struct tmComResVBIFormatDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResProbeCommit_t/struct tmComResProbeCommit/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResDebugSetLevel_t/struct tmComResDebugSetLevel/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResDebugGetData_t/struct tmComResDebugGetData/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmFwInfoStruct_t/struct tmFwInfoStruct/g; print " $i >a && mv a $i; done Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> |
||
---|---|---|
.. | ||
au0828 | ||
bt8xx | ||
cpia2 | ||
cx18 | ||
cx88 | ||
cx231xx | ||
cx23885 | ||
cx25840 | ||
davinci | ||
em28xx | ||
et61x251 | ||
gspca | ||
hdpvr | ||
ivtv | ||
omap | ||
pvrusb2 | ||
pwc | ||
s5p-fimc | ||
saa7134 | ||
saa7164 | ||
sn9c102 | ||
tlg2300 | ||
usbvideo | ||
usbvision | ||
uvc | ||
zoran | ||
adv7170.c | ||
adv7175.c | ||
adv7180.c | ||
adv7343_regs.h | ||
adv7343.c | ||
ak881x.c | ||
arv.c | ||
bt819.c | ||
bt856.c | ||
bt866.c | ||
btcx-risc.c | ||
btcx-risc.h | ||
bw-qcam.c | ||
c-qcam.c | ||
cafe_ccic-regs.h | ||
cafe_ccic.c | ||
cs53l32a.c | ||
cs5345.c | ||
cs8420.h | ||
cx2341x.c | ||
dabusb.c | ||
dabusb.h | ||
fsl-viu.c | ||
hexium_gemini.c | ||
hexium_orion.c | ||
ibmmpeg2.h | ||
indycam.c | ||
indycam.h | ||
ir-kbd-i2c.c | ||
Kconfig | ||
ks0127.c | ||
ks0127.h | ||
m52790.c | ||
Makefile | ||
mem2mem_testdev.c | ||
meye.c | ||
meye.h | ||
msp3400-driver.c | ||
msp3400-driver.h | ||
msp3400-kthreads.c | ||
mt9m001.c | ||
mt9m111.c | ||
mt9t031.c | ||
mt9t112.c | ||
mt9v011.c | ||
mt9v011.h | ||
mt9v022.c | ||
mx1_camera.c | ||
mx2_camera.c | ||
mx3_camera.c | ||
mxb.c | ||
mxb.h | ||
omap24xxcam-dma.c | ||
omap24xxcam.c | ||
omap24xxcam.h | ||
ov772x.c | ||
ov7670.c | ||
ov9640.c | ||
ov9640.h | ||
pms.c | ||
pxa_camera.c | ||
rj54n1cb0c.c | ||
s2255drv.c | ||
saa711x_regs.h | ||
saa717x.c | ||
saa6588.c | ||
saa7110.c | ||
saa7115.c | ||
saa7121.h | ||
saa7127.c | ||
saa7146.h | ||
saa7146reg.h | ||
saa7185.c | ||
saa7191.c | ||
saa7191.h | ||
se401.c | ||
se401.h | ||
sh_mobile_ceu_camera.c | ||
sh_mobile_csi2.c | ||
sh_vou.c | ||
soc_camera_platform.c | ||
soc_camera.c | ||
soc_mediabus.c | ||
stk-sensor.c | ||
stk-webcam.c | ||
stk-webcam.h | ||
tcm825x.c | ||
tcm825x.h | ||
tda7432.c | ||
tda9840.c | ||
tda9875.c | ||
tea6415c.c | ||
tea6415c.h | ||
tea6420.c | ||
tea6420.h | ||
ths7303.c | ||
tlv320aic23b.c | ||
tuner-core.c | ||
tvaudio.c | ||
tveeprom.c | ||
tvp514x_regs.h | ||
tvp514x.c | ||
tvp5150_reg.h | ||
tvp5150.c | ||
tvp7002_reg.h | ||
tvp7002.c | ||
tw9910.c | ||
upd64031a.c | ||
upd64083.c | ||
v4l1-compat.c | ||
v4l2-common.c | ||
v4l2-compat-ioctl32.c | ||
v4l2-ctrls.c | ||
v4l2-dev.c | ||
v4l2-device.c | ||
v4l2-event.c | ||
v4l2-fh.c | ||
v4l2-int-device.c | ||
v4l2-ioctl.c | ||
v4l2-mem2mem.c | ||
videobuf-core.c | ||
videobuf-dma-contig.c | ||
videobuf-dma-sg.c | ||
videobuf-dvb.c | ||
videobuf-vmalloc.c | ||
vino.c | ||
vino.h | ||
vivi.c | ||
vp27smpx.c | ||
vpx3220.c | ||
w9966.c | ||
wm8739.c | ||
wm8775.c | ||
zr364xx.c |