Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124199
b: refs/heads/master
c: 8029712
h: refs/heads/master
i:
  124197: ffa318f
  124195: 1da5d12
  124191: 7855f95
v: v3
  • Loading branch information
Julia Lawall authored and Mauro Carvalho Chehab committed Dec 29, 2008
1 parent 24142dd commit 1a1bed0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 292ee46107abc213fc073298aa6a838a595d2b78
refs/heads/master: 802971257a3b897d2affd39e540be264bae89c3b
6 changes: 3 additions & 3 deletions trunk/drivers/media/common/tuners/mxl5005s.c
Original file line number Diff line number Diff line change
Expand Up @@ -3598,7 +3598,7 @@ static u16 MXL_GetInitRegister(struct dvb_frontend *fe, u8 *RegNum,
76, 77, 91, 134, 135, 137, 147,
156, 166, 167, 168, 25 };

*count = sizeof(RegAddr) / sizeof(u8);
*count = ARRAY_SIZE(RegAddr);

status += MXL_BlockInit(fe);

Expand Down Expand Up @@ -3630,7 +3630,7 @@ static u16 MXL_GetCHRegister(struct dvb_frontend *fe, u8 *RegNum, u8 *RegVal,
*/
#endif

*count = sizeof(RegAddr) / sizeof(u8);
*count = ARRAY_SIZE(RegAddr);

for (i = 0 ; i < *count; i++) {
RegNum[i] = RegAddr[i];
Expand All @@ -3648,7 +3648,7 @@ static u16 MXL_GetCHRegister_ZeroIF(struct dvb_frontend *fe, u8 *RegNum,

u8 RegAddr[] = {43, 136};

*count = sizeof(RegAddr) / sizeof(u8);
*count = ARRAY_SIZE(RegAddr);

for (i = 0; i < *count; i++) {
RegNum[i] = RegAddr[i];
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/gspca/gspca.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
if (fmtdesc->index == index)
break; /* new format */
index++;
if (index >= sizeof fmt_tb / sizeof fmt_tb[0])
if (index >= ARRAY_SIZE(fmt_tb))
return -EINVAL;
}
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/gspca/mars.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
cam = &gspca_dev->cam;
cam->epaddr = 0x01;
cam->cam_mode = vga_mode;
cam->nmodes = sizeof vga_mode / sizeof vga_mode[0];
cam->nmodes = ARRAY_SIZE(vga_mode);
sd->qindex = 1; /* set the quantization table */
return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/gspca/spca500.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,10 +633,10 @@ static int sd_config(struct gspca_dev *gspca_dev,
sd->subtype = id->driver_info;
if (sd->subtype != LogitechClickSmart310) {
cam->cam_mode = vga_mode;
cam->nmodes = sizeof vga_mode / sizeof vga_mode[0];
cam->nmodes = ARRAY_SIZE(vga_mode);
} else {
cam->cam_mode = sif_mode;
cam->nmodes = sizeof sif_mode / sizeof sif_mode[0];
cam->nmodes = ARRAY_SIZE(sif_mode);
}
sd->qindex = 5;
sd->brightness = BRIGHTNESS_DEF;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/saa7134/saa7134-tvaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static struct saa7134_tvaudio tvaudio[] = {
.mode = TVAUDIO_FM_MONO,
}
};
#define TVAUDIO (sizeof(tvaudio)/sizeof(struct saa7134_tvaudio))
#define TVAUDIO ARRAY_SIZE(tvaudio)

/* ------------------------------------------------------------------ */

Expand Down

0 comments on commit 1a1bed0

Please sign in to comment.