diff options
| author | Alexandru Ardelean <[email protected]> | 2021-06-30 16:16:35 +0300 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-07-17 18:49:30 +0100 |
| commit | 09d5135b6ffcb243580a4a77f299a0253a94f5e3 (patch) | |
| tree | a9a84ec625a28d272faff5447192323ad937d373 /include/linux/debugobjects.h | |
| parent | bb761e722f6dff05b94bdfff8a7209a442f220ff (diff) | |
iio: proximity: rfd77402: use i2c_client for rfd77402_{init,powerdown}()
These 2 functions only do I2C reads/writes and don't require any of the
private data of the driver.
They're also used in the PM suspend/resume part of the driver.
Converting them to take an i2c_client object as parameter simplifies things
a bit (especially in the suspend/resume) as the driver mostly needs the
reference for i2c_client, so no need to jump through hoops to get it from
the private data (as was done in many places).
The rfd77402_measure() function has also been converted to take an
i2c_client object, since it also does only I2C ops.
Signed-off-by: Alexandru Ardelean <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions