coreboot/src/drivers/i2c
Patrick Georgi 48e0792e4a i2c/w83795: Fix chip type message
(val & 4) == 1 is always false. Since val & 4 is either zero or
non-zero, just drop the second test (for "== 1").
Validated against the data sheet that this is really the right register,
bit and value.

Change-Id: I627df9a9b4fddfff486689e405f52a3b54135eef
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Found-by: Coverity Scan #1241864
Reviewed-on: https://review.coreboot.org/16009
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2016-08-02 14:02:59 +02:00
..
adm1026 drivers: Use DEVICE_NOOP macro over dummy symbol 2014-11-01 21:14:07 +01:00
adm1027 drivers: Use DEVICE_NOOP macro over dummy symbol 2014-11-01 21:14:07 +01:00
adt7463 tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
at24rf08c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
da7219 drivers/i2c/da7219: Add driver for generating device in SSDT 2016-07-08 17:22:16 +02:00
generic drivers/i2c/generic: Fix compile failure 2016-06-22 20:25:14 +02:00
i2cmux devicetree: Discriminate device ops scan_bus() 2015-06-04 11:19:01 +02:00
i2cmux2 devicetree: Discriminate device ops scan_bus() 2015-06-04 11:19:01 +02:00
lm63 drivers: Use DEVICE_NOOP macro over dummy symbol 2014-11-01 21:14:07 +01:00
nau8825 acpi: Change device properties to work as a tree 2016-07-08 17:21:26 +02:00
pcf8523 drivers/i2c: Add new driver for RTC type PCF8523 2016-07-14 07:04:04 +02:00
rtd2132 tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
tpm kconfig: allow various tpm type and interface permutations 2016-06-23 17:11:48 +02:00
w83793 tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
w83795 i2c/w83795: Fix chip type message 2016-08-02 14:02:59 +02:00
ww_ring i2c/ww_ring: Add ww_ring files to ramstage 2016-07-28 00:38:09 +02:00