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)
commitffb42e64561e71b7a59d76e1fe427ed5657324c6
tree81b9df3ff93671c2acba736055590137fe91d890
parentcdb702a655582e80139525156c57e6e48da08393
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