mei: pxp: Keep a const qualifier when calling mei_cldev_send()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 21 Jul 2023 20:26:27 +0000 (22:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Jul 2023 16:15:27 +0000 (18:15 +0200)
The API has been fixed in commit 0912ef4855e8 ("mei: constify passed
buffers and structures"), so there is no more need to drop the const
qualifier and the comment can be removed as-well.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/23c078181575e65ff660f993bc6eb38753b3d5e7.1689971167.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/pxp/mei_pxp.c

index 3bf560b..2dcb916 100644 (file)
@@ -40,8 +40,7 @@ mei_pxp_send_message(struct device *dev, const void *message, size_t size)
 
        cldev = to_mei_cl_device(dev);
 
-       /* temporary drop const qualifier till the API is fixed */
-       byte = mei_cldev_send(cldev, (u8 *)message, size);
+       byte = mei_cldev_send(cldev, message, size);
        if (byte < 0) {
                dev_dbg(dev, "mei_cldev_send failed. %zd\n", byte);
                return byte;