| 3d463dd5 | 29-Jul-2021 |
Krzysztof Kozlowski <[email protected]> |
nfc: fdp: constify several pointers
Several functions do not modify pointed data so arguments and local variables can be const for correctness and safety. This allows also making file-scope nci_cor
nfc: fdp: constify several pointers
Several functions do not modify pointed data so arguments and local variables can be const for correctness and safety. This allows also making file-scope nci_core_get_config_otp_ram_version array const.
Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
show more ...
|
| c3e26b6d | 29-Jul-2021 |
Krzysztof Kozlowski <[email protected]> |
nfc: fdp: use unsigned int as loop iterator
Loop iterators are simple integers, no point to optimize the size and use u8. It only raises the question whether the variable is used in some other cont
nfc: fdp: use unsigned int as loop iterator
Loop iterators are simple integers, no point to optimize the size and use u8. It only raises the question whether the variable is used in some other context.
Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
show more ...
|
| 466e1c88 | 28-May-2021 |
Krzysztof Kozlowski <[email protected]> |
nfc: fdp: drop ACPI_PTR from device ID table
The driver can match only via the ACPI ID table so the table should be always used and the ACPI_PTR does not have any sense. This fixes fixes compile wa
nfc: fdp: drop ACPI_PTR from device ID table
The driver can match only via the ACPI ID table so the table should be always used and the ACPI_PTR does not have any sense. This fixes fixes compile warning (!CONFIG_ACPI):
drivers/nfc/fdp/i2c.c:362:36: warning: ‘fdp_nci_i2c_acpi_match’ defined but not used [-Wunused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
show more ...
|