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

media: atomisp: drop contiguous argument from frame_create()

Drop the contiguous argument from frame_create()
all callers always passes false.

Link: https://lore.kernel.org/linux-media/20220615205037.16549-6-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 1c0d8f81
...@@ -84,7 +84,6 @@ static struct ia_css_frame *frame_create(unsigned int width, ...@@ -84,7 +84,6 @@ static struct ia_css_frame *frame_create(unsigned int width,
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,
bool valid); bool valid);
static unsigned static unsigned
...@@ -215,7 +214,6 @@ int ia_css_frame_create_from_info(struct ia_css_frame **frame, ...@@ -215,7 +214,6 @@ int ia_css_frame_create_from_info(struct ia_css_frame **frame,
info->format, info->format,
info->padded_width, info->padded_width,
info->raw_bit_depth, info->raw_bit_depth,
false,
false); false);
if (!me) { if (!me) {
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE,
...@@ -492,7 +490,7 @@ int ia_css_frame_allocate_with_buffer_size(struct ia_css_frame **frame, ...@@ -492,7 +490,7 @@ int ia_css_frame_allocate_with_buffer_size(struct ia_css_frame **frame,
int err; int err;
struct ia_css_frame *me = frame_create(0, 0, struct ia_css_frame *me = frame_create(0, 0,
IA_CSS_FRAME_FORMAT_NUM,/* Not valid format yet */ IA_CSS_FRAME_FORMAT_NUM,/* Not valid format yet */
0, 0, false, false); 0, 0, false);
if (!me) if (!me)
return -ENOMEM; return -ENOMEM;
...@@ -780,7 +778,6 @@ static int frame_allocate_with_data(struct ia_css_frame **frame, ...@@ -780,7 +778,6 @@ static int frame_allocate_with_data(struct ia_css_frame **frame,
format, format,
padded_width, padded_width,
raw_bit_depth, raw_bit_depth,
false,
true); true);
if (!me) if (!me)
...@@ -810,7 +807,6 @@ static struct ia_css_frame *frame_create(unsigned int width, ...@@ -810,7 +807,6 @@ static struct ia_css_frame *frame_create(unsigned int width,
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,
bool valid) bool valid)
{ {
struct ia_css_frame *me = kvmalloc(sizeof(*me), GFP_KERNEL); struct ia_css_frame *me = kvmalloc(sizeof(*me), GFP_KERNEL);
...@@ -824,7 +820,7 @@ static struct ia_css_frame *frame_create(unsigned int width, ...@@ -824,7 +820,7 @@ static struct ia_css_frame *frame_create(unsigned int width,
me->info.format = format; me->info.format = format;
me->info.padded_width = padded_width; me->info.padded_width = padded_width;
me->info.raw_bit_depth = raw_bit_depth; me->info.raw_bit_depth = raw_bit_depth;
me->contiguous = contiguous; me->contiguous = false;
me->valid = valid; me->valid = valid;
me->data_bytes = 0; me->data_bytes = 0;
me->data = mmgr_NULL; me->data = mmgr_NULL;
......
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