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

Re: [PATCH 3/4] Input: tsc2005 - simplify drvdata acquisition

From: Sebastian Reichel <sre@kernel.org>
Date: 2015-07-15 22:02:33
Also in: linux-omap, lkml

Hi,

On Wed, Jul 15, 2015 at 02:31:07PM -0700, Dmitry Torokhov wrote:
On Wed, Jul 15, 2015 at 02:13:27PM +0200, Sebastian Reichel wrote:
quoted
Do not convert device to spi_device just for getting
the driver data, since spi_get_drvdata() just calls
dev_get_drvdata().
Even though at the moment they all share the same data I consider them
logically different and so would prefer not to substityte one for
another.
I guess your problem is with mixing spi_*_drvdata and dev_*_drvdata
calls? In that case I will also change spi_set_drvdata to
dev_set_drvdata, so that spi_*_drvdata is not used at all.

This will still reduce lines of code and flatten the way for tsc2004
support (which is i2c based).

-- Sebastian

Attachments

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