Messages in this thread | | | Subject | Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference | From | Corentin LABBE <> | Date | Mon, 16 Nov 2015 20:12:14 +0100 |
| |
Le 16/11/2015 19:33, Brian Norris a écrit : > On Thu, Nov 12, 2015 at 09:19:09AM +0100, Uwe Kleine-König wrote: >> I really wonder there is no helper >> function like: >> >> #define of_sensible_name(dev) of_match_device(dev->driver->of_match_table, dev) > > How about of_device_get_match_data()? > > It's not exactly what you asked for, but it gets what you need here. > > Brian >
I have got the same comment from another thread. I will use it. Thanks
Regards
| |