summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Souza <luiz@netgate.com>2018-03-23 18:22:23 -0300
committerLuiz Souza <luiz@netgate.com>2018-03-23 18:47:51 -0300
commit3c02dc3000b4eef3c6d62107dc1925920fc62677 (patch)
tree4eb0963c07da796bd04a910c165ac5d8fd50efae
parent1f1467f3bbb379136d1964767d6f3512fa5e10e4 (diff)
downloadFreeBSD-src-3c02dc3000b4eef3c6d62107dc1925920fc62677.zip
FreeBSD-src-3c02dc3000b4eef3c6d62107dc1925920fc62677.tar.gz
The I2C device addresses do not need to be shifted in FreeBSD.
(cherry picked from commit 9705bbc6faa133f3a6eae420b5b710f0f4cc27a0)
-rw-r--r--sys/dev/ismt/ismt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ismt/ismt.c b/sys/dev/ismt/ismt.c
index 3fbcfed..dc90e3f 100644
--- a/sys/dev/ismt/ismt.c
+++ b/sys/dev/ismt/ismt.c
@@ -72,7 +72,7 @@ __FBSDID("$FreeBSD$");
#define ISMT_DESC_LPR 0x80 /* Large Packet Received */
/* Macros */
-#define ISMT_DESC_ADDR_RW(addr, is_read) ((addr << 1) | (is_read))
+#define ISMT_DESC_ADDR_RW(addr, is_read) ((addr) | (is_read))
/* iSMT General Register address offsets (SMBBAR + <addr>) */
#define ISMT_GR_GCTRL 0x000 /* General Control */
OpenPOWER on IntegriCloud