]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tiny/repaper: Make driver OF-independent
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 31 Jan 2020 20:49:22 +0000 (22:49 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 10 Feb 2020 01:54:46 +0000 (02:54 +0100)
commitbacdedb9ba07223e7db71afb732cfed8a5423ad5
tree81b9df3ff93671c2acba736055590137fe91d890
parentb25ecc10045bd22f7a896c34bf5caf127d3a9f77
drm/tiny/repaper: Make driver OF-independent

There is one OF call in the driver that limits its area of use.
Replace it to generic device_get_match_data() and get rid of OF dependency.

While here, cast SPI driver data to certain enumerator type.

Cc: Noralf Trønnes <noralf@tronnes.org>
Cc: dri-devel@lists.freedesktop.org
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: David Lechner <david@lechnology.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200131204923.48928-1-andriy.shevchenko@linux.intel.com
drivers/gpu/drm/tiny/repaper.c