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

[media] media: i2c: adv7604.c: Remove some unused functions

Removes some functions that are not used anywhere:
vblanking() hblanking()

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Rickard Strandqvist and committed by
Mauro Carvalho Chehab
05a2ea78 80592786

-30
-10
drivers/media/i2c/adv7604.c
··· 333 333 return container_of(sd, struct adv7604_state, sd); 334 334 } 335 335 336 - static inline unsigned hblanking(const struct v4l2_bt_timings *t) 337 - { 338 - return V4L2_DV_BT_BLANKING_WIDTH(t); 339 - } 340 - 341 336 static inline unsigned htotal(const struct v4l2_bt_timings *t) 342 337 { 343 338 return V4L2_DV_BT_FRAME_WIDTH(t); 344 - } 345 - 346 - static inline unsigned vblanking(const struct v4l2_bt_timings *t) 347 - { 348 - return V4L2_DV_BT_BLANKING_HEIGHT(t); 349 339 } 350 340 351 341 static inline unsigned vtotal(const struct v4l2_bt_timings *t)
-10
drivers/media/i2c/adv7842.c
··· 220 220 return &container_of(ctrl->handler, struct adv7842_state, hdl)->sd; 221 221 } 222 222 223 - static inline unsigned hblanking(const struct v4l2_bt_timings *t) 224 - { 225 - return V4L2_DV_BT_BLANKING_WIDTH(t); 226 - } 227 - 228 223 static inline unsigned htotal(const struct v4l2_bt_timings *t) 229 224 { 230 225 return V4L2_DV_BT_FRAME_WIDTH(t); 231 - } 232 - 233 - static inline unsigned vblanking(const struct v4l2_bt_timings *t) 234 - { 235 - return V4L2_DV_BT_BLANKING_HEIGHT(t); 236 226 } 237 227 238 228 static inline unsigned vtotal(const struct v4l2_bt_timings *t)
-10
drivers/media/i2c/ths8200.c
··· 58 58 return container_of(sd, struct ths8200_state, sd); 59 59 } 60 60 61 - static inline unsigned hblanking(const struct v4l2_bt_timings *t) 62 - { 63 - return V4L2_DV_BT_BLANKING_WIDTH(t); 64 - } 65 - 66 61 static inline unsigned htotal(const struct v4l2_bt_timings *t) 67 62 { 68 63 return V4L2_DV_BT_FRAME_WIDTH(t); 69 - } 70 - 71 - static inline unsigned vblanking(const struct v4l2_bt_timings *t) 72 - { 73 - return V4L2_DV_BT_BLANKING_HEIGHT(t); 74 64 } 75 65 76 66 static inline unsigned vtotal(const struct v4l2_bt_timings *t)