media: atomisp: add hmm_create_from_userdata() helper
authorHans de Goede <hdegoede@redhat.com>
Wed, 15 Jun 2022 20:50:25 +0000 (21:50 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 15:23:35 +0000 (16:23 +0100)
commitceff4bdb60c0483f3e500844fb56c468e3077d0a
tree447e726861e968eb3a62d19f74d11fd9065cd2fc
parenta9796c7b47a943cbb7fb2bd54211a93c32bc88bb
media: atomisp: add hmm_create_from_userdata() helper

Most hmm_alloc() callers want BO_PRIVATE type memory.

Add a hmm_create_from_userdata() helper for other cases so that
the hmm_alloc() calls for all the callers who don't want this
can be simplied.

Link: https://lore.kernel.org/linux-media/20220615205037.16549-29-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>
drivers/staging/media/atomisp/include/hmm/hmm.h
drivers/staging/media/atomisp/pci/hmm/hmm.c
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c