staging: sm750fb: Replace printk() with pr_info().
In-Reply-To: <alpine.DEB.2.10.1610090748050.3134@hadrien>
Quoted 6 lines
Maybe the information is available in a function that calls this one, and you can add an extra parameter?
julia
You're right, the function that calls it has the device pointer.
It already passes 3 attributes of the device by value, I could pass a fourth one to use it with dev_info().
I think that passing a copy of the whole device struct makes the code clearer, is there any great drawback of doing that instead of passing only the 4 used attributes?
thank you,
elise
Quoted 9 lines · Elise Lennion
In-Reply-To: <alpine.DEB.2.10.1610090748050.3134@hadrien>
Quoted 6 lines
Maybe the information is available in a function that calls this one, and you can add an extra parameter?
julia
Quoted 8 lines
You're right, the function that calls it has the device pointer.
It already passes 3 attributes of the device by value, I could pass a fourth one to use it with
dev_info().I think that passing a copy of the whole device struct makes the code clearer, is there any great drawback of doing that instead of passing only the 4 used attributes?
A priori, it seems like a good idea.
julia
Quoted 12 lines
thank you,
elise
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20161011002907.GB16781%40lennorien.com.
For more options, visit https://groups.google.com/d/optout.