diff options
author | Tomás Tormo <tomas.tormo@gmail.com> | 2016-02-14 20:30:56 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-14 16:52:15 -0800 |
commit | 73b37c91ac5f31c296220bb20dabb881c80b4222 (patch) | |
tree | f20e583bf6bfe8ab9ade400c82d0899706371750 /drivers/staging/nvec/nvec.h | |
parent | bb778553d491b65310b83c55274a2f09912d47a1 (diff) | |
download | linux-73b37c91ac5f31c296220bb20dabb881c80b4222.tar.bz2 |
Staging: nvec: Modify the nvec_write_sync method to return the error code
Modify the nvec_write_sync function to return the error code
instead of the received message.
The received message is now returned as an output parameter.
Signed-off-by: Tomás Tormo <tomas.tormo@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/nvec/nvec.h')
-rw-r--r-- | drivers/staging/nvec/nvec.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/nvec/nvec.h b/drivers/staging/nvec/nvec.h index 2ec9de906ca3..c03ca8d9572a 100644 --- a/drivers/staging/nvec/nvec.h +++ b/drivers/staging/nvec/nvec.h @@ -168,8 +168,9 @@ struct nvec_chip { int nvec_write_async(struct nvec_chip *nvec, const unsigned char *data, short size); -struct nvec_msg *nvec_write_sync(struct nvec_chip *nvec, - const unsigned char *data, short size); +int nvec_write_sync(struct nvec_chip *nvec, + const unsigned char *data, short size, + struct nvec_msg **msg); int nvec_register_notifier(struct nvec_chip *nvec, struct notifier_block *nb, |