summaryrefslogtreecommitdiff
path: root/drivers/hid/intel-ish-hid/ishtp/bus.h
diff options
context:
space:
mode:
authorHong Liu <hong.liu@intel.com>2019-02-12 15:05:23 +0300
committerJiri Kosina <jkosina@suse.cz>2019-02-16 00:47:21 +0300
commit09cc8b361887787a3577aa0b6510af4b11b51b9e (patch)
treeb826762220ff689e81d6c0725cb84dd41c17bafb /drivers/hid/intel-ish-hid/ishtp/bus.h
parent7e06e0d5493b3e88016b247fe92f67a071d2c655 (diff)
downloadlinux-09cc8b361887787a3577aa0b6510af4b11b51b9e.tar.xz
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.h')
-rw-r--r--drivers/hid/intel-ish-hid/ishtp/bus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/intel-ish-hid/ishtp/bus.h b/drivers/hid/intel-ish-hid/ishtp/bus.h
index b8a5bcc82536..5c4763d73f8b 100644
--- a/drivers/hid/intel-ish-hid/ishtp/bus.h
+++ b/drivers/hid/intel-ish-hid/ishtp/bus.h
@@ -85,7 +85,7 @@ int ishtp_send_msg(struct ishtp_device *dev,
/* Write a single-fragment message */
int ishtp_write_message(struct ishtp_device *dev,
struct ishtp_msg_hdr *hdr,
- unsigned char *buf);
+ void *buf);
/* Use DMA to send/receive messages */
int ishtp_use_dma_transfer(void);