We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a83695a commit 815f164Copy full SHA for 815f164
drivers/iio/adc/mcp3911.c
@@ -55,8 +55,8 @@
55
/* Internal voltage reference in mV */
56
#define MCP3911_INT_VREF_MV 1200
57
58
-#define MCP3911_REG_READ(reg, id) ((((reg) << 1) | ((id) << 5) | (1 << 0)) & 0xff)
59
-#define MCP3911_REG_WRITE(reg, id) ((((reg) << 1) | ((id) << 5) | (0 << 0)) & 0xff)
+#define MCP3911_REG_READ(reg, id) ((((reg) << 1) | ((id) << 6) | (1 << 0)) & 0xff)
+#define MCP3911_REG_WRITE(reg, id) ((((reg) << 1) | ((id) << 6) | (0 << 0)) & 0xff)
60
61
#define MCP3911_NUM_CHANNELS 2
62
0 commit comments