Commit 1c0d8f81 authored by Hans de Goede's avatar Hans de Goede Committed by Mauro Carvalho Chehab

media: atomisp: drop contiguous argument from frame_allocate_with_data()

Drop the contiguous argument from frame_allocate_with_data()
its only caller always passes false.

Link: https://lore.kernel.org/linux-media/20220615205037.16549-5-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 001b48b6
...@@ -77,8 +77,7 @@ static int frame_allocate_with_data(struct ia_css_frame **frame, ...@@ -77,8 +77,7 @@ static int frame_allocate_with_data(struct ia_css_frame **frame,
unsigned int height, unsigned int height,
enum ia_css_frame_format format, enum ia_css_frame_format format,
unsigned int padded_width, unsigned int padded_width,
unsigned int raw_bit_depth, unsigned int raw_bit_depth);
bool contiguous);
static struct ia_css_frame *frame_create(unsigned int width, static struct ia_css_frame *frame_create(unsigned int width,
unsigned int height, unsigned int height,
...@@ -137,7 +136,7 @@ int ia_css_frame_allocate(struct ia_css_frame **frame, ...@@ -137,7 +136,7 @@ int ia_css_frame_allocate(struct ia_css_frame **frame,
width, height, format, padded_width, raw_bit_depth); width, height, format, padded_width, raw_bit_depth);
err = frame_allocate_with_data(frame, width, height, format, err = frame_allocate_with_data(frame, width, height, format,
padded_width, raw_bit_depth, false); padded_width, raw_bit_depth);
if ((*frame) && err == 0) if ((*frame) && err == 0)
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE,
...@@ -773,8 +772,7 @@ static int frame_allocate_with_data(struct ia_css_frame **frame, ...@@ -773,8 +772,7 @@ static int frame_allocate_with_data(struct ia_css_frame **frame,
unsigned int height, unsigned int height,
enum ia_css_frame_format format, enum ia_css_frame_format format,
unsigned int padded_width, unsigned int padded_width,
unsigned int raw_bit_depth, unsigned int raw_bit_depth)
bool contiguous)
{ {
int err; int err;
struct ia_css_frame *me = frame_create(width, struct ia_css_frame *me = frame_create(width,
...@@ -782,7 +780,7 @@ static int frame_allocate_with_data(struct ia_css_frame **frame, ...@@ -782,7 +780,7 @@ static int frame_allocate_with_data(struct ia_css_frame **frame,
format, format,
padded_width, padded_width,
raw_bit_depth, raw_bit_depth,
contiguous, false,
true); true);
if (!me) if (!me)
......
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