drm/i2c: tda998x: allow re-use of tda998x support code
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 7 Feb 2014 19:17:21 +0000 (19:17 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 1 Aug 2014 16:16:54 +0000 (17:16 +0100)
commita8f4d4d63739e4bca459ff40636f1d9e4b7ef5e6
tree74e5d31512e939057ad0845a4106bd40e8055d05
parentde4bf3d51fe38eaf90cb587e4eae1f3f0e056a54
drm/i2c: tda998x: allow re-use of tda998x support code

Re-jig the TDA998x code so that we separate the functionality from the
drm slave encoder implementation.  In several places, this is pretty
clearly the correct thing to do, because we can avoid repetitively
having to convert from the drm_encoder to the TDA998x private
structure, particularly with the driver internal functions.

The main motivation behind this change is to allow the code to be
re-used with a standard drm_encoder and drm_connector implementation
based on the component helpers, rather than the slave_encoder system.
The addition of this will be in the following patch.

We keep the slave_encoder interface as there are existing users of
this; we need to give them time to convert and test.

Tested-by: Darren Etheridge <detheridge@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c