Thread (23 messages) 23 messages, 6 authors, 2011-05-24
STALE5510d

[PATCH v5 8/8] MTD: physmap: let set_vpp() pass a platform_device instead of a map_info

From: Marc Zyngier <hidden>
Date: 2011-05-16 15:14:56

On Mon, 2011-05-16 at 23:06 +0800, Eric Miao wrote:
On Mon, May 16, 2011 at 10:59 PM, Marc Zyngier [off-list ref] wrote:
quoted
The set_vpp() method provided by physmap passes a map_info back to
the platform code, which has little relevance as far as the platform
is concerned (this parameter is completely unused).

Instead, pass the platform_device, which can be used in the pismo
driver to retrieve some important information in a nicer way, instead
of the hack that was in place.
Not really sure if a 'struct device' would be more generic here, though this
case is simply a 'struct platform_device'.
While I agree that 'struct device' is more generic, physmap only knows
about platform_devices. Should another device type be added to physmap,
this would make sense. But at the moment I'd like to limit the code
churn to what is strictly necessary.

Cheers,

	M.
-- 
Reality is an implementation detail.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help