diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2016-11-11 02:00:08 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-15 10:56:52 +0100 |
commit | 4b9960d052840072b59548b866db5f21d0adcf28 (patch) | |
tree | deb4d40e813128c85f39560c6ac87e5d8b4d57dd /drivers/misc/mei/hw-txe.c | |
parent | mei: consolidate repeating code in mei_cl_irq_read_msg (diff) | |
download | linux-4b9960d052840072b59548b866db5f21d0adcf28.tar.xz linux-4b9960d052840072b59548b866db5f21d0adcf28.zip |
mei: constify buffer in the write functions calls
The write buffer should not by modified so make it constant. Also
hitchhike some style fixes on the way in the interface and rename
mei_me_write_message to mei_me_hbuf_write for consistency.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/hw-txe.c')
-rw-r--r-- | drivers/misc/mei/hw-txe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/mei/hw-txe.c b/drivers/misc/mei/hw-txe.c index 60415a2bfcbd..b7a2f622f23c 100644 --- a/drivers/misc/mei/hw-txe.c +++ b/drivers/misc/mei/hw-txe.c @@ -691,7 +691,8 @@ static void mei_txe_hw_config(struct mei_device *dev) */ static int mei_txe_write(struct mei_device *dev, - struct mei_msg_hdr *header, unsigned char *buf) + struct mei_msg_hdr *header, + const unsigned char *buf) { struct mei_txe_hw *hw = to_txe_hw(dev); unsigned long rem; |