summaryrefslogtreecommitdiffstats
path: root/drivers/slimbus
diff options
context:
space:
mode:
authorSrinivas Kandagatla2018-06-19 17:12:02 +0200
committerGreg Kroah-Hartman2018-07-07 17:23:12 +0200
commit8134d27103b35dbdc94d762f82ca0bfb00f349ff (patch)
tree172dc9442abef214fadd54b17d159ca684a3fac9 /drivers/slimbus
parentipack: add error handling for ioremap_nocache (diff)
downloadkernel-qcow2-linux-8134d27103b35dbdc94d762f82ca0bfb00f349ff.tar.gz
kernel-qcow2-linux-8134d27103b35dbdc94d762f82ca0bfb00f349ff.tar.xz
kernel-qcow2-linux-8134d27103b35dbdc94d762f82ca0bfb00f349ff.zip
slimbus: messaging: pass correct wbuf
There seems to be a typo while filling msg for slim_write, wbuf is set to NULL instead of rbuf. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/slimbus')
-rw-r--r--drivers/slimbus/messaging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/slimbus/messaging.c b/drivers/slimbus/messaging.c
index 457ea1f8db30..5a2ff01b394c 100644
--- a/drivers/slimbus/messaging.c
+++ b/drivers/slimbus/messaging.c
@@ -307,7 +307,7 @@ int slim_write(struct slim_device *sdev, u32 addr, size_t count, u8 *val)
{
struct slim_val_inf msg;
- slim_fill_msg(&msg, addr, count, val, NULL);
+ slim_fill_msg(&msg, addr, count, NULL, val);
return slim_xfer_msg(sdev, &msg, SLIM_MSG_MC_CHANGE_VALUE);
}