video: hdmi: Remove unused hdmi_infoframe_check
hdmi_infoframe_check() has been unused since it was added in
commit c5e69ab35c ("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>
pull/1134/head
parent
dcbcf5244e
commit
4e39aded66
|
|
@ -894,34 +894,6 @@ hdmi_vendor_any_infoframe_pack(union hdmi_vendor_any_infoframe *frame,
|
||||||
return hdmi_vendor_any_infoframe_pack_only(frame, buffer, size);
|
return hdmi_vendor_any_infoframe_pack_only(frame, buffer, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* hdmi_infoframe_check() - check a HDMI infoframe
|
|
||||||
* @frame: HDMI infoframe
|
|
||||||
*
|
|
||||||
* Validates that the infoframe is consistent and updates derived fields
|
|
||||||
* (eg. length) based on other fields.
|
|
||||||
*
|
|
||||||
* Returns 0 on success or a negative error code on failure.
|
|
||||||
*/
|
|
||||||
int
|
|
||||||
hdmi_infoframe_check(union hdmi_infoframe *frame)
|
|
||||||
{
|
|
||||||
switch (frame->any.type) {
|
|
||||||
case HDMI_INFOFRAME_TYPE_AVI:
|
|
||||||
return hdmi_avi_infoframe_check(&frame->avi);
|
|
||||||
case HDMI_INFOFRAME_TYPE_SPD:
|
|
||||||
return hdmi_spd_infoframe_check(&frame->spd);
|
|
||||||
case HDMI_INFOFRAME_TYPE_AUDIO:
|
|
||||||
return hdmi_audio_infoframe_check(&frame->audio);
|
|
||||||
case HDMI_INFOFRAME_TYPE_VENDOR:
|
|
||||||
return hdmi_vendor_any_infoframe_check(&frame->vendor);
|
|
||||||
default:
|
|
||||||
WARN(1, "Bad infoframe type %d\n", frame->any.type);
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(hdmi_infoframe_check);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* hdmi_infoframe_pack_only() - write a HDMI infoframe to binary buffer
|
* hdmi_infoframe_pack_only() - write a HDMI infoframe to binary buffer
|
||||||
* @frame: HDMI infoframe
|
* @frame: HDMI infoframe
|
||||||
|
|
|
||||||
|
|
@ -445,7 +445,6 @@ ssize_t hdmi_infoframe_pack(union hdmi_infoframe *frame, void *buffer,
|
||||||
size_t size);
|
size_t size);
|
||||||
ssize_t hdmi_infoframe_pack_only(const union hdmi_infoframe *frame,
|
ssize_t hdmi_infoframe_pack_only(const union hdmi_infoframe *frame,
|
||||||
void *buffer, size_t size);
|
void *buffer, size_t size);
|
||||||
int hdmi_infoframe_check(union hdmi_infoframe *frame);
|
|
||||||
int hdmi_infoframe_unpack(union hdmi_infoframe *frame,
|
int hdmi_infoframe_unpack(union hdmi_infoframe *frame,
|
||||||
const void *buffer, size_t size);
|
const void *buffer, size_t size);
|
||||||
void hdmi_infoframe_log(const char *level, struct device *dev,
|
void hdmi_infoframe_log(const char *level, struct device *dev,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue