Re: [PATCH V2 2/5] input: keyboard: imx_sc: Add i.MX system controller power key support

From
Pavel Machek <hidden>
Date
2019-09-22 16:14:12
Also in
linux-arm-kernel, linux-devicetree, lkml
Hi!
quoted
quoted
Why is it global struct? It seems to be flexible configurable over devicetree.
So I would assume it should be able to handle more then one button. Please
remove global variables, make it allocatable per OF node.
There is ONLY one button available for SC key, but yes, I think I can make the structure
private and get all necessary data from the structure using container_of.
And we will never need more then 640 kB RAM ;)
https://en.wikiquote.org/wiki/Talk:Bill_Gates
Right question is "is it worth complicating kernel now (and making it slower/bigger)
for future flexibility?". And I believe answer is "no", but it is not a big deal
either way.								Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Thread (1 message) 1 message, 1 author, last reply 2019-09-22
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help