OSDN Git Service

mtd: nand: sh_flctl: Use of_device_get_match_data() helper
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 4 Oct 2017 12:19:03 +0000 (14:19 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Sat, 7 Oct 2017 09:28:07 +0000 (11:28 +0200)
commitb8640c5b8bef7e24fe54d2713f4c91b563a65c55
tree4cb4c1f4de1c3d1f8eb7cb78514e91f1cd6f14dc
parent7963f58cbf3a722c93f946c80a12f185b86dc45c
mtd: nand: sh_flctl: Use of_device_get_match_data() helper

Use the of_device_get_match_data() helper instead of open coding.
While at it, make config const so the cast can be dropped.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/sh_flctl.c