summaryrefslogtreecommitdiff
path: root/drivers/iio/common
diff options
context:
space:
mode:
authorSuniel Mahesh <sunil.m@techveda.org>2017-10-04 10:45:37 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-04 11:26:34 +0300
commit006e202fe6f91c9dd26f754ff0c7f38f2363aaf8 (patch)
tree9238a69ba65cde14c74af7d20f4c32211e0d0e76 /drivers/iio/common
parent3e6c508693e0a5d3db80d6149d6a51e921051c8e (diff)
downloadlinux-006e202fe6f91c9dd26f754ff0c7f38f2363aaf8.tar.xz
staging: ccree: Convert to platform_{get,set}_drvdata()
Platform devices are expected to use wrapper functions, platform_{get,set}_drvdata() with platform_device as argument, for getting and setting the driver data. dev_{get,set}_drvdata() are using &plat_dev->dev. For wrapper functions we can directly pass a struct platform_device. dev_set_drvdata() is redundant and therefore removed. The driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by: Suniel Mahesh <sunil.m@techveda.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/common')
0 files changed, 0 insertions, 0 deletions