mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
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.com Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
f2ce294155
commit
7c6b6a5bbd
@@ -245,44 +245,6 @@ ia_css_frame_allocate_from_info(struct ia_css_frame **frame,
|
||||
void
|
||||
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.
|
||||
*
|
||||
* @param frame The allocated frame.
|
||||
|
||||
@@ -270,49 +270,6 @@ int ia_css_frame_set_data(struct ia_css_frame *frame,
|
||||
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)
|
||||
{
|
||||
IA_CSS_ENTER_PRIVATE("frame = %p", frame);
|
||||
|
||||
Reference in New Issue
Block a user