Commit 7c6b6a5b authored by Hans de Goede's avatar Hans de Goede Committed by Mauro Carvalho Chehab

media: atomisp: remove unused ia_css_frame_allocate_contiguous*() functions

ia_css_frame_allocate_contiguous() and
ia_css_frame_allocate_contiguous_from_info() are not used anywhere,
remove them.

Link: https://lore.kernel.org/linux-media/20220615205037.16549-3-hdegoede@redhat.comReviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent f2ce2941
...@@ -245,44 +245,6 @@ ia_css_frame_allocate_from_info(struct ia_css_frame **frame, ...@@ -245,44 +245,6 @@ ia_css_frame_allocate_from_info(struct ia_css_frame **frame,
void void
ia_css_frame_free(struct ia_css_frame *frame); ia_css_frame_free(struct ia_css_frame *frame);
/* @brief Allocate a contiguous CSS frame structure
*
* @param frame The allocated frame.
* @param width The width (in pixels) of the frame.
* @param height The height (in lines) of the frame.
* @param format The frame format.
* @param stride The padded stride, in pixels.
* @param raw_bit_depth The raw bit depth, in bits.
* @return The error code.
*
* Contiguous frame allocation, only for FPGA display driver which needs
* physically contiguous memory.
* Deprecated.
*/
int
ia_css_frame_allocate_contiguous(struct ia_css_frame **frame,
unsigned int width,
unsigned int height,
enum ia_css_frame_format format,
unsigned int stride,
unsigned int raw_bit_depth);
/* @brief Allocate a contiguous CSS frame from a frame info structure.
*
* @param frame The allocated frame.
* @param[in] info The frame info structure.
* @return The error code.
*
* Allocate a frame using the resolution and format from a frame info struct.
* This is a convenience function, implemented on top of
* ia_css_frame_allocate_contiguous().
* Only for FPGA display driver which needs physically contiguous memory.
* Deprecated.
*/
int
ia_css_frame_allocate_contiguous_from_info(struct ia_css_frame **frame,
const struct ia_css_frame_info *info);
/* @brief Allocate a CSS frame structure using a frame info structure. /* @brief Allocate a CSS frame structure using a frame info structure.
* *
* @param frame The allocated frame. * @param frame The allocated frame.
......
...@@ -270,49 +270,6 @@ int ia_css_frame_set_data(struct ia_css_frame *frame, ...@@ -270,49 +270,6 @@ int ia_css_frame_set_data(struct ia_css_frame *frame,
return err; return err;
} }
int ia_css_frame_allocate_contiguous(struct ia_css_frame **frame,
unsigned int width,
unsigned int height,
enum ia_css_frame_format format,
unsigned int padded_width,
unsigned int raw_bit_depth)
{
int err = 0;
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE,
"ia_css_frame_allocate_contiguous() enter: width=%d, height=%d, format=%d, padded_width=%d, raw_bit_depth=%d\n",
width, height, format, padded_width, raw_bit_depth);
err = frame_allocate_with_data(frame, width, height, format,
padded_width, raw_bit_depth, true);
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE,
"ia_css_frame_allocate_contiguous() leave: frame=%p\n",
frame ? *frame : (void *)-1);
return err;
}
int ia_css_frame_allocate_contiguous_from_info(
struct ia_css_frame **frame,
const struct ia_css_frame_info *info)
{
int err = 0;
assert(frame);
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE,
"ia_css_frame_allocate_contiguous_from_info() enter:\n");
err = ia_css_frame_allocate_contiguous(frame,
info->res.width,
info->res.height,
info->format,
info->padded_width,
info->raw_bit_depth);
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE,
"ia_css_frame_allocate_contiguous_from_info() leave:\n");
return err;
}
void ia_css_frame_free(struct ia_css_frame *frame) void ia_css_frame_free(struct ia_css_frame *frame)
{ {
IA_CSS_ENTER_PRIVATE("frame = %p", frame); IA_CSS_ENTER_PRIVATE("frame = %p", frame);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment