remarkable-linux/drivers/nfc
Colin Ian King e103853510 NFC: trf7970a: fix check of clock frequencies, use && instead of ||
The "or" condition (clk_freq != TRF7970A_27MHZ_CLOCK_FREQUENCY) ||
(clk_freq != TRF7970A_13MHZ_CLOCK_FREQUE) will always be true because
clk_freq cannot be equal to two different values at the same time. Use
the  && operator instead of || to fix this.

Detected by CoverityScan, CID#1430468 ("Constant expression result")

Fixes: 837eb4d21e ("NFC: trf7970a: add device tree option for 27MHz clock")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Geoff Lansberry <geoff@kuvee.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2017-06-22 23:59:01 +02:00
..
fdp NFC: fdp: Add GPIO ACPI mapping table 2017-06-22 23:51:44 +02:00
microread networking: add and use skb_put_u8() 2017-06-16 11:48:40 -04:00
nfcmrvl NFC: nfcmrvl: allow gpio 0 for reset signalling 2017-06-18 23:58:00 +02:00
nxp-nci networking: make skb_pull & friends return void pointers 2017-06-16 11:48:39 -04:00
pn533 networking: add and use skb_put_u8() 2017-06-16 11:48:40 -04:00
pn544 NFC: pn544: Switch to devm_acpi_dev_add_driver_gpios() 2017-06-22 23:51:44 +02:00
s3fwrn5 networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
st-nci NFC: st-nci: Get rid of code duplication in ->probe() 2017-06-22 23:51:45 +02:00
st21nfca NFC: st21nfca: Get rid of code duplication in ->probe() 2017-06-22 23:51:44 +02:00
st95hf networking: add and use skb_put_u8() 2017-06-16 11:48:40 -04:00
Kconfig NFC: trf7970a: Convert to descriptor based GPIO interface 2017-06-18 23:57:58 +02:00
Makefile NFC: remove TI nfcwilink driver 2017-04-01 23:04:30 +02:00
mei_phy.c mei: bus: split RX and async notification callbacks 2016-11-17 16:37:49 +01:00
mei_phy.h
nfcsim.c NFC: nfcsim: Simulate lost frames through debugfs entry 2016-07-19 23:24:49 +02:00
port100.c networking: add and use skb_put_u8() 2017-06-16 11:48:40 -04:00
trf7970a.c NFC: trf7970a: fix check of clock frequencies, use && instead of || 2017-06-22 23:59:01 +02:00