···468468/****************************************************************************/469469int setup_saa(struct usb_device *p, bool ntsc)470470{471471- int i, ir;471471+ int i, rc;472472 const struct saa7113config *cfg;473473 if (!p)474474 return -ENODEV;475475 cfg = (ntsc) ? saa7113configNTSC : saa7113configPAL;476476- for (i = 0; cfg[i].reg != 0xFF; i++)477477- ir = write_saa(p, cfg[i].reg, cfg[i].set);476476+ for (i = 0; cfg[i].reg != 0xFF; i++) {477477+ rc = write_saa(p, cfg[i].reg, cfg[i].set);478478+ if (rc)479479+ dev_err(&p->dev,480480+ "Failed to set SAA register %d", cfg[i].reg);481481+ }478482 return 0;479483}480484/****************************************************************************/
+1-6
drivers/staging/media/easycap/easycap_main.c
···11991199 * WHEN BOOLEAN PARAMETER decimatepixel IS true, ONLY THE FIELD FOR WHICH12001200 * odd==false IS TRANSFERRED TO THE FRAME BUFFER.12011201 *12021202- * THE BOOLEAN PARAMETER offerfields IS true ONLY WHEN THE USER PROGRAM12031203- * CHOOSES THE OPTION V4L2_FIELD_INTERLACED.12041202 */12051203/*---------------------------------------------------------------------------*/12061204static int field2frame(struct easycap *peasycap)···12101212 int rc, bytesperpixel, multiplier;12111213 int much, more, over, rump, caches, input;12121214 u8 mask, margin;12131213- bool odd, isuy, decimatepixel, offerfields, badinput;12151215+ bool odd, isuy, decimatepixel, badinput;1214121612151217 if (!peasycap) {12161218 SAY("ERROR: peasycap is NULL\n");···12261228 peasycap->field_buffer[peasycap->field_read][0].input,12271229 peasycap->field_read, peasycap->frame_fill);12281230 JOM(8, "===== %i=bytesperpixel\n", peasycap->bytesperpixel);12291229- if (peasycap->offerfields)12301230- JOM(8, "===== offerfields\n");1231123112321232/*---------------------------------------------------------------------------*/12331233/*···12471251#endif /*EASYCAP_TESTCARD*/12481252/*---------------------------------------------------------------------------*/1249125312501250- offerfields = peasycap->offerfields;12511254 bytesperpixel = peasycap->bytesperpixel;12521255 decimatepixel = peasycap->decimatepixel;12531256