diff options
| author | Guoming Chen <chenguoming88s@gmail.com> | 2026-08-21 21:16:44 +0800 |
|---|---|---|
| committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2026-10-20 15:41:38 +0200 |
| commit | 0bbeed584e92744c30858233d498215a32faa8eb (patch) | |
| tree | 33764ec39cce6fe1907e672aebc451a9a68a1f52 /tools/lib/python | |
| parent | b253c2e96a80aac8e2bc67b425bf007ed78d4d8c (diff) | |
rtc: ds1307: drop redundant dev_set_drvdata() in probe
i2c_set_clientdata() is a thin wrapper around
dev_set_drvdata(&client->dev, ...), so calling both in ds1307_probe()
stores the same driver-data pointer twice. The two calls were introduced
together in the regmap conversion in commit 11e5890b5342c ("rtc: ds1307:
convert driver to regmap").
Keep i2c_set_clientdata(), which matches the convention used by every
other I2C RTC driver in the subsystem, and drop the redundant
dev_set_drvdata().
Signed-off-by: Guoming Chen <chenguoming88s@gmail.com>
Link: https://patch.msgid.link/20260821131644.71794-1-chenguoming88s@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
