]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i2c: tda998x: allocate tda998x_priv inside tda998x_create()
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 2 Aug 2018 09:25:19 +0000 (10:25 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 7 Aug 2018 09:32:03 +0000 (10:32 +0100)
commit4b5c4720cf739c36d4ad9ba8c980f9eb002d9d04
treebcad138acfe189b3c9b331ae66d2e93be0149665
parentf315d8572d19c42b940f0f166f638d53a0b1a2de
drm/i2c: tda998x: allocate tda998x_priv inside tda998x_create()

Move the tda998x_priv allocation inside tda998x_create() and simplify
the tda998x_create()'s arguments.  Pass the same to tda998x_destroy().

Tested-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c