diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2020-09-10 18:12:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-11 00:22:16 +0200 |
commit | 171a7000fa94c7ed30720357bc0b9e8d277d15e5 (patch) | |
tree | c6ce0eb1fb44109c12a89783d61e33703b6116ac /drivers/nfc/s3fwrn5/firmware.h | |
parent | nfc: s3fwrn5: Add missing CRYPTO_HASH dependency (diff) | |
download | linux-171a7000fa94c7ed30720357bc0b9e8d277d15e5.tar.xz linux-171a7000fa94c7ed30720357bc0b9e8d277d15e5.zip |
nfc: s3fwrn5: Constify s3fwrn5_fw_info when not modified
Two functions accept pointer to struct s3fwrn5_fw_info but do not
modify the contents. Make them const so the code is a little bit safer.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nfc/s3fwrn5/firmware.h')
-rw-r--r-- | drivers/nfc/s3fwrn5/firmware.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/s3fwrn5/firmware.h b/drivers/nfc/s3fwrn5/firmware.h index cf1a83a5a525..3c83e6730d30 100644 --- a/drivers/nfc/s3fwrn5/firmware.h +++ b/drivers/nfc/s3fwrn5/firmware.h @@ -91,7 +91,7 @@ struct s3fwrn5_fw_info { void s3fwrn5_fw_init(struct s3fwrn5_fw_info *fw_info, const char *fw_name); int s3fwrn5_fw_setup(struct s3fwrn5_fw_info *fw_info); -bool s3fwrn5_fw_check_version(struct s3fwrn5_fw_info *fw_info, u32 version); +bool s3fwrn5_fw_check_version(const struct s3fwrn5_fw_info *fw_info, u32 version); int s3fwrn5_fw_download(struct s3fwrn5_fw_info *fw_info); void s3fwrn5_fw_cleanup(struct s3fwrn5_fw_info *fw_info); |