diff options
author | Hong Liu <hong.liu@intel.com> | 2019-02-12 13:05:23 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2019-02-15 22:47:21 +0100 |
commit | 09cc8b361887787a3577aa0b6510af4b11b51b9e (patch) | |
tree | b826762220ff689e81d6c0725cb84dd41c17bafb /drivers/hid/intel-ish-hid/ishtp/bus.c | |
parent | HID: intel-ish-hid: move doorbell writing before flush (diff) | |
download | linux-09cc8b361887787a3577aa0b6510af4b11b51b9e.tar.xz linux-09cc8b361887787a3577aa0b6510af4b11b51b9e.zip |
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>
Diffstat (limited to 'drivers/hid/intel-ish-hid/ishtp/bus.c')
-rw-r--r-- | drivers/hid/intel-ish-hid/ishtp/bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/intel-ish-hid/ishtp/bus.c b/drivers/hid/intel-ish-hid/ishtp/bus.c index a271d6d169b1..f358a02325da 100644 --- a/drivers/hid/intel-ish-hid/ishtp/bus.c +++ b/drivers/hid/intel-ish-hid/ishtp/bus.c @@ -119,7 +119,7 @@ int ishtp_send_msg(struct ishtp_device *dev, struct ishtp_msg_hdr *hdr, * Return: This returns IPC send message status. */ int ishtp_write_message(struct ishtp_device *dev, struct ishtp_msg_hdr *hdr, - unsigned char *buf) + void *buf) { return ishtp_send_msg(dev, hdr, buf, NULL, NULL); } |