diff options
author | Hans de Goede <hdegoede@redhat.com> | 2020-04-28 19:29:17 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-05-10 11:41:30 +0200 |
commit | b885d0fa6790b8b2c8502dc93fed27ce85e68922 (patch) | |
tree | b8697737ec587d19c2832858c088600adb9dab1e /drivers/iio/TODO | |
parent | iio: light: cm32181: Add support for the CM3218 (diff) | |
download | linux-b885d0fa6790b8b2c8502dc93fed27ce85e68922.tar.xz linux-b885d0fa6790b8b2c8502dc93fed27ce85e68922.zip |
iio: light: cm32181: Clean up the probe function a bit
3 small cleanups to cm32181_probe():
1. Do not log an error when we fail to allocate memory (as a general
rule drivers do not log errors for this as the kernel will already
have complained loudly that it could not alloc the mem).
2. Remove the i2c_set_clientdata() call, we never use i2c_get_clientdata()
or dev_get_drvdata() anywhere.
3. Add a dev helper variable and use it in various places instead of
&client->dev.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/TODO')
0 files changed, 0 insertions, 0 deletions