Skip to content
Snippets Groups Projects
Commit 4e587c93 authored by Zhansaya Bagdauletkyzy's avatar Zhansaya Bagdauletkyzy Committed by Mauro Carvalho Chehab
Browse files

media: staging: media: zoran: Rename 'HEnd' to 'h_end'


Rename variable 'HEnd' to 'h_end' to eliminate camelcase
Reported by checkpatch.pl.

Signed-off-by: default avatarZhansaya Bagdauletkyzy <zhansayabagdaulet@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 0a3c89f1
No related branches found
No related tags found
No related merge requests found
...@@ -291,7 +291,7 @@ static void zr36057_set_vfe(struct zoran *zr, int video_width, int video_height, ...@@ -291,7 +291,7 @@ static void zr36057_set_vfe(struct zoran *zr, int video_width, int video_height,
const struct zoran_format *format) const struct zoran_format *format)
{ {
const struct tvnorm *tvn; const struct tvnorm *tvn;
unsigned int h_start, HEnd, v_start, VEnd; unsigned int h_start, h_end, v_start, VEnd;
unsigned int DispMode; unsigned int DispMode;
unsigned int VidWinWid, VidWinHt; unsigned int VidWinWid, VidWinHt;
unsigned int hcrop1, hcrop2, vcrop1, vcrop2; unsigned int hcrop1, hcrop2, vcrop1, vcrop2;
...@@ -331,11 +331,11 @@ static void zr36057_set_vfe(struct zoran *zr, int video_width, int video_height, ...@@ -331,11 +331,11 @@ static void zr36057_set_vfe(struct zoran *zr, int video_width, int video_height,
* However, the DC10 has '0' as h_start, but does need |1, so we * However, the DC10 has '0' as h_start, but does need |1, so we
* use a dirty check... * use a dirty check...
*/ */
HEnd = h_start + tvn->wa - 1; h_end = h_start + tvn->wa - 1;
h_start += hcrop1; h_start += hcrop1;
HEnd -= hcrop2; h_end -= hcrop2;
reg = ((h_start & ZR36057_VFEHCR_HMASK) << ZR36057_VFEHCR_H_START) reg = ((h_start & ZR36057_VFEHCR_HMASK) << ZR36057_VFEHCR_H_START)
| ((HEnd & ZR36057_VFEHCR_HMASK) << ZR36057_VFEHCR_H_END); | ((h_end & ZR36057_VFEHCR_HMASK) << ZR36057_VFEHCR_H_END);
if (zr->card.vfe_pol.hsync_pol) if (zr->card.vfe_pol.hsync_pol)
reg |= ZR36057_VFEHCR_HS_POL; reg |= ZR36057_VFEHCR_HS_POL;
btwrite(reg, ZR36057_VFEHCR); btwrite(reg, ZR36057_VFEHCR);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment