Thread (16 messages) flat view 16 messages, 2 authors, 2015-07-16

Re: [PATCH 2/4] Input: tsc2005 - convert to regmap

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2015-07-16 06:34:34
Also in: linux-omap, lkml

On Wed, Jul 15, 2015 at 02:13:26PM +0200, Sebastian Reichel wrote:
-static int tsc2005_write(struct tsc2005 *ts, u8 reg, u16 value)
-{
-	u32 tx = ((reg | TSC2005_REG_PND0) << 16) | value;
-	struct spi_transfer xfer = {
-		.tx_buf		= &tx,
-		.len		= 4,
-		.bits_per_word	= 24,
-	};
I wonder why the original code used 24 bit-sized-words for transfers...

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help