diff mbox

Fix typo in comments

Message ID 53BBCA1C.90103@apollo.lv (mailing list archive)
State New, archived
Headers show

Commit Message

Raimonds Cicans July 8, 2014, 10:38 a.m. UTC
Expression ((7bit i2c_addr << 1) & 0x01) can not be right
because it is always 0

Signed-off-by: Raimonds Cicans <ray@apollo.lv>
---
  drivers/media/usb/dvb-usb/dibusb.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/media/usb/dvb-usb/dibusb.h b/drivers/media/usb/dvb-usb/dibusb.h
index e47c321..32ab139 100644
--- a/drivers/media/usb/dvb-usb/dibusb.h
+++ b/drivers/media/usb/dvb-usb/dibusb.h
@@ -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