HID: intel-ish-hid: remove data[128] usage on stack when sending HBM request
authorHong Liu <hong.liu@intel.com>
Tue, 12 Feb 2019 12:05:23 +0000 (20:05 +0800)
committerJiri Kosina <jkosina@suse.cz>
Fri, 15 Feb 2019 21:47:21 +0000 (22:47 +0100)
commit09cc8b361887787a3577aa0b6510af4b11b51b9e
treeb826762220ff689e81d6c0725cb84dd41c17bafb
parent7e06e0d5493b3e88016b247fe92f67a071d2c655
HID: intel-ish-hid: remove data[128] usage on stack when sending HBM request

Instead of using an 128-byte on-stack array to store the request, we can
instantiate the request on stack directly. This can save the stack usage of
these functions, since most of the requests are much smaller than 128 bytes.

Signed-off-by: Hong Liu <hong.liu@intel.com>
Tested-by: Hongyan Song <hongyan.song@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/intel-ish-hid/ishtp/bus.c
drivers/hid/intel-ish-hid/ishtp/bus.h
drivers/hid/intel-ish-hid/ishtp/hbm.c