Thread (10 messages) 10 messages, 4 authors, 2011-07-19

Re: [PATCH 1/2] Input: gpio-keys: do not reference platform_data after .probe exits

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2011-07-18 17:02:44
Also in: linux-arm-kernel, linux-devicetree

On Monday, July 18, 2011 09:45:07 AM Shawn Guo wrote:
The patch makes a copy of platform data into driver data, so that any
reference to platform_data after .probe exits can be avoided.
And why is this beneficial? I am of the opinion that platform data should
stay on (and be accessed through a const pointer to ensure that the driver
will not alter it).

Thanks.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help