i2c: pca-platform: drop two members from driver data that are assigned to only
io_base and io_size are assigned to only in .probe() and otherwise unused. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>
This commit is contained in:
parent
c610199cd3
commit
83eb65b6ac
|
@ -33,8 +33,6 @@ struct i2c_pca_pf_data {
|
|||
wait_queue_head_t wait;
|
||||
struct i2c_adapter adap;
|
||||
struct i2c_algo_pca_data algo_data;
|
||||
unsigned long io_base;
|
||||
unsigned long io_size;
|
||||
};
|
||||
|
||||
/* Read/Write functions for different register alignments */
|
||||
|
@ -156,8 +154,6 @@ static int i2c_pca_pf_probe(struct platform_device *pdev)
|
|||
|
||||
init_waitqueue_head(&i2c->wait);
|
||||
|
||||
i2c->io_base = res->start;
|
||||
i2c->io_size = resource_size(res);
|
||||
i2c->irq = irq;
|
||||
|
||||
i2c->adap.nr = pdev->id;
|
||||
|
|
Loading…
Reference in New Issue