Skip to contentSkip to conversation

Fix typo in comments

PATCH New Raimonds Cicans 1 participant 1 message Jul 8, 2014 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix typo in comments

Expression ((7bit i2c_addr << 1) & 0x01) can not be right because it is always 0

---
 drivers/media/usb/dvb-usb/dibusb.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/dvb-usb/dibusb.h +1 -1
index e47c321..32ab139 100644
@@ -36,7 +36,7 @@
 
 /*
  * i2c read
- * bulk write: 0x02 ((7bit i2c_addr << 1) & 0x01) register_bytes length_word
+ * bulk write: 0x02 ((7bit i2c_addr << 1) | 0x01) register_bytes length_word
  * bulk read:  byte_buffer (length_word bytes)
  */
 #define DIBUSB_REQ_I2C_READ			0x02
Signature · 1 line
1.8.5.5