linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix typo in comments
@ 2014-07-08 10:38 Raimonds Cicans
  0 siblings, 0 replies; only message in thread
From: Raimonds Cicans @ 2014-07-08 10:38 UTC (permalink / raw)
  To: linux-media

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 --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
-- 
1.8.5.5


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-07-08 10:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-08 10:38 [PATCH] Fix typo in comments Raimonds Cicans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).