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.

video: hdmi: Remove unused hdmi_infoframe_check

hdmi_infoframe_check() has been unused since it was added in
commit c5e69ab35c0d ("video/hdmi: Constify infoframe passed to the pack
functions")

Remove it.

Note that the individual check functions for each type are
actually used, so they're staying.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Dr. David Alan Gilbert and committed by
Helge Deller
4e39aded dcbcf524

-29
-28
drivers/video/hdmi.c
··· 895 895 } 896 896 897 897 /** 898 - * hdmi_infoframe_check() - check a HDMI infoframe 899 - * @frame: HDMI infoframe 900 - * 901 - * Validates that the infoframe is consistent and updates derived fields 902 - * (eg. length) based on other fields. 903 - * 904 - * Returns 0 on success or a negative error code on failure. 905 - */ 906 - int 907 - hdmi_infoframe_check(union hdmi_infoframe *frame) 908 - { 909 - switch (frame->any.type) { 910 - case HDMI_INFOFRAME_TYPE_AVI: 911 - return hdmi_avi_infoframe_check(&frame->avi); 912 - case HDMI_INFOFRAME_TYPE_SPD: 913 - return hdmi_spd_infoframe_check(&frame->spd); 914 - case HDMI_INFOFRAME_TYPE_AUDIO: 915 - return hdmi_audio_infoframe_check(&frame->audio); 916 - case HDMI_INFOFRAME_TYPE_VENDOR: 917 - return hdmi_vendor_any_infoframe_check(&frame->vendor); 918 - default: 919 - WARN(1, "Bad infoframe type %d\n", frame->any.type); 920 - return -EINVAL; 921 - } 922 - } 923 - EXPORT_SYMBOL(hdmi_infoframe_check); 924 - 925 - /** 926 898 * hdmi_infoframe_pack_only() - write a HDMI infoframe to binary buffer 927 899 * @frame: HDMI infoframe 928 900 * @buffer: destination buffer
-1
include/linux/hdmi.h
··· 445 445 size_t size); 446 446 ssize_t hdmi_infoframe_pack_only(const union hdmi_infoframe *frame, 447 447 void *buffer, size_t size); 448 - int hdmi_infoframe_check(union hdmi_infoframe *frame); 449 448 int hdmi_infoframe_unpack(union hdmi_infoframe *frame, 450 449 const void *buffer, size_t size); 451 450 void hdmi_infoframe_log(const char *level, struct device *dev,