]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: s3fwrn5: Constify s3fwrn5_fw_info when not modified
authorKrzysztof Kozlowski <krzk@kernel.org>
Thu, 10 Sep 2020 16:12:17 +0000 (18:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2020 22:22:16 +0000 (15:22 -0700)
commit3419d5020f7592e905aac1c5a6c9c517105717ee
treec6ce0eb1fb44109c12a89783d61e33703b6116ac
parent1cb7061d446288cf34abbdd65a676c982d9fb117
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>
drivers/nfc/s3fwrn5/firmware.c
drivers/nfc/s3fwrn5/firmware.h