Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

gpu: ipu-v3: Remove unused ipu_rot_mode_to_degrees

ipu_rot_mode_to_degrees() was added in 2014 by
commit f835f386a119 ("gpu: ipu-v3: Add rotation mode conversion utilities")
but has remained unused.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241226022752.219399-3-linux@treblig.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

authored by

Dr. David Alan Gilbert and committed by
Dmitry Baryshkov
a52ba18c 16e3bf49

-34
-32
drivers/gpu/ipu-v3/ipu-common.c
··· 165 165 } 166 166 EXPORT_SYMBOL_GPL(ipu_degrees_to_rot_mode); 167 167 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 - 200 168 struct ipuv3_channel *ipu_idmac_get(struct ipu_soc *ipu, unsigned num) 201 169 { 202 170 struct ipuv3_channel *channel;
-2
include/video/imx-ipu-v3.h
··· 484 484 enum ipu_color_space ipu_pixelformat_to_colorspace(u32 pixelformat); 485 485 int ipu_degrees_to_rot_mode(enum ipu_rotate_mode *mode, int degrees, 486 486 bool hflip, bool vflip); 487 - int ipu_rot_mode_to_degrees(int *degrees, enum ipu_rotate_mode mode, 488 - bool hflip, bool vflip); 489 487 490 488 struct ipu_client_platformdata { 491 489 int csi;