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>
This commit is contained in:

committed by
David S. Miller

parent
4aa62c62d4
commit
171a7000fa
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user