[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <564A2A8E.30506@gmail.com>
Date: Mon, 16 Nov 2015 20:12:14 +0100
From: Corentin LABBE <clabbe.montjoie@...il.com>
To: Brian Norris <computersforpeace@...il.com>,
Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
Cc: baruch@...s.co.il, dwmw2@...radead.org, fransklaver@...il.com,
k.kozlowski.k@...il.com, luis@...ethencourt.com,
s.hauer@...gutronix.de, linux-kernel@...r.kernel.org,
linux-mtd@...ts.infradead.org
Subject: Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists