* [PATCH] i2c: pca-platform: drop two members from driver data that are assigned to only
@ 2020-11-23 20:27 Uwe Kleine-König
2020-12-02 15:57 ` Wolfram Sang
0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2020-11-23 20:27 UTC (permalink / raw)
To: Wolfram Sang; +Cc: linux-i2c, kernel
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>
---
drivers/i2c/busses/i2c-pca-platform.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/i2c/busses/i2c-pca-platform.c b/drivers/i2c/busses/i2c-pca-platform.c
index 546426a470cc..86d4f75ef8d3 100644
--- a/drivers/i2c/busses/i2c-pca-platform.c
+++ b/drivers/i2c/busses/i2c-pca-platform.c
@@ -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;
--
2.29.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] i2c: pca-platform: drop two members from driver data that are assigned to only
2020-11-23 20:27 [PATCH] i2c: pca-platform: drop two members from driver data that are assigned to only Uwe Kleine-König
@ 2020-12-02 15:57 ` Wolfram Sang
2020-12-03 8:03 ` Uwe Kleine-König
0 siblings, 1 reply; 4+ messages in thread
From: Wolfram Sang @ 2020-12-02 15:57 UTC (permalink / raw)
To: Uwe Kleine-König; +Cc: linux-i2c, kernel
[-- Attachment #1: Type: text/plain, Size: 280 bytes --]
On Mon, Nov 23, 2020 at 09:27:46PM +0100, Uwe Kleine-König wrote:
> 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>
My very first driver :)
Applied to for-next, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] i2c: pca-platform: drop two members from driver data that are assigned to only
2020-12-02 15:57 ` Wolfram Sang
@ 2020-12-03 8:03 ` Uwe Kleine-König
2020-12-03 16:58 ` Wolfram Sang
0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2020-12-03 8:03 UTC (permalink / raw)
To: linux-i2c, kernel; +Cc: Wolfram Sang
[-- Attachment #1: Type: text/plain, Size: 634 bytes --]
On Wed, Dec 02, 2020 at 04:57:01PM +0100, Wolfram Sang wrote:
> On Mon, Nov 23, 2020 at 09:27:46PM +0100, Uwe Kleine-König wrote:
> > 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>
>
> My very first driver :)
Just for the record: I was never Wolfram's chauffeur. I guess he meant
that the i2c-pca-platform driver was the first i2c driver he wrote.
SCNR
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] i2c: pca-platform: drop two members from driver data that are assigned to only
2020-12-03 8:03 ` Uwe Kleine-König
@ 2020-12-03 16:58 ` Wolfram Sang
0 siblings, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2020-12-03 16:58 UTC (permalink / raw)
To: Uwe Kleine-König; +Cc: linux-i2c, kernel
[-- Attachment #1: Type: text/plain, Size: 188 bytes --]
> > My very first driver :)
>
> Just for the record: I was never Wolfram's chauffeur. I guess he meant
> that the i2c-pca-platform driver was the first i2c driver he wrote.
:D
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-12-03 16:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-23 20:27 [PATCH] i2c: pca-platform: drop two members from driver data that are assigned to only Uwe Kleine-König
2020-12-02 15:57 ` Wolfram Sang
2020-12-03 8:03 ` Uwe Kleine-König
2020-12-03 16:58 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).