On Tue, 26 Aug 2014, Chris Zhong wrote:
On 08/26/2014 05:22 PM, Lee Jones wrote:If client->dev.pdata is NULL, yes.
On Mon, 25 Aug 2014, Chris Zhong wrote:So, should I malloc a pada, and assign it to client->dev?
On 08/20/2014 05:21 PM, Lee Jones wrote:[...]
On Wed, 20 Aug 2014, Chris Zhong wrote:
The RK808 chip is a power management IC for multimedia and handheld
devices. It contains the following components:
The rk808 core driver is registered as a platform driver and provides
communication through I2C with the host device for the different
Signed-off-by: Chris Zhong <zyw@xxxxxxxxxxxxxx>
If the one in dev is empty, you should populate that instead.Can I keep this pdata in rk808, because it is used in the regulator driver.+ rk808->pdata = pdata;Remove pdata from 'struct rk808'. You can obtain it from dev.
The one obtain from dev maybe empty.
But actually, I have more important questions that need to be answered
first. Ones which I would normally be able to answer myself if the
patch-set had been sent as one (i.e. threaded) instead of as
- What are you using pdata for?
- Where is pdata populated?
- Where is pdata used?