atomisp: remove indirection from sh_css_malloc
authorAlan Cox <alan@linux.intel.com>
Wed, 12 Apr 2017 18:21:33 +0000 (19:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Apr 2017 08:07:27 +0000 (10:07 +0200)
commitda22013f7df4e1f49b03d763aae7b12b1cd805d7
treefab8170277322ea530bb4cf5444436cdc62af4b3
parent83fceac0504fbcbe2aad420f7791ed740cc20612
atomisp: remove indirection from sh_css_malloc

We have one hard coded set of behaviour so unpick the indirection and function
pointers. This isn't the whole story. A lot of the callers are known sizes and
use cases so we can switch them directly to kmalloc later on.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c
drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_env.h
drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css.c