Skip to content

Commit a52ba18

Browse files
Dr. David Alan Gilbertlumag
authored andcommitted
gpu: ipu-v3: Remove unused ipu_rot_mode_to_degrees
ipu_rot_mode_to_degrees() was added in 2014 by commit f835f38 ("gpu: ipu-v3: Add rotation mode conversion utilities") but has remained unused. Remove it. Signed-off-by: Dr. David Alan Gilbert <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 16e3bf4 commit a52ba18

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

drivers/gpu/ipu-v3/ipu-common.c

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -165,38 +165,6 @@ int ipu_degrees_to_rot_mode(enum ipu_rotate_mode *mode, int degrees,
165165
}
166166
EXPORT_SYMBOL_GPL(ipu_degrees_to_rot_mode);
167167

168-
int ipu_rot_mode_to_degrees(int *degrees, enum ipu_rotate_mode mode,
169-
bool hflip, bool vflip)
170-
{
171-
u32 r90, vf, hf;
172-
173-
r90 = ((u32)mode >> 2) & 0x1;
174-
hf = ((u32)mode >> 1) & 0x1;
175-
vf = ((u32)mode >> 0) & 0x1;
176-
hf ^= (u32)hflip;
177-
vf ^= (u32)vflip;
178-
179-
switch ((enum ipu_rotate_mode)((r90 << 2) | (hf << 1) | vf)) {
180-
case IPU_ROTATE_NONE:
181-
*degrees = 0;
182-
break;
183-
case IPU_ROTATE_90_RIGHT:
184-
*degrees = 90;
185-
break;
186-
case IPU_ROTATE_180:
187-
*degrees = 180;
188-
break;
189-
case IPU_ROTATE_90_LEFT:
190-
*degrees = 270;
191-
break;
192-
default:
193-
return -EINVAL;
194-
}
195-
196-
return 0;
197-
}
198-
EXPORT_SYMBOL_GPL(ipu_rot_mode_to_degrees);
199-
200168
struct ipuv3_channel *ipu_idmac_get(struct ipu_soc *ipu, unsigned num)
201169
{
202170
struct ipuv3_channel *channel;

include/video/imx-ipu-v3.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,6 @@ enum ipu_color_space ipu_drm_fourcc_to_colorspace(u32 drm_fourcc);
484484
enum ipu_color_space ipu_pixelformat_to_colorspace(u32 pixelformat);
485485
int ipu_degrees_to_rot_mode(enum ipu_rotate_mode *mode, int degrees,
486486
bool hflip, bool vflip);
487-
int ipu_rot_mode_to_degrees(int *degrees, enum ipu_rotate_mode mode,
488-
bool hflip, bool vflip);
489487

490488
struct ipu_client_platformdata {
491489
int csi;

0 commit comments

Comments
 (0)