iio: trigger: stm32-lptimer-trigger: remove unneeded platform_set_drvdata()
authorAndrei Coardos <aboutphysycs@gmail.com>
Wed, 2 Aug 2023 12:09:15 +0000 (15:09 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 5 Aug 2023 18:29:39 +0000 (19:29 +0100)
commitd866f14071b8b0d52ee459223d87e3f26f261ddf
treeab2c430ab2b159decf2426944b989c23a7e3730e
parente19480dded1b37234bc28c911a9ea0a3d2e855b2
iio: trigger: stm32-lptimer-trigger: remove unneeded platform_set_drvdata()

This function call was found to be unnecessary as there is no equivalent
platform_get_drvdata() call to access the private data of the driver. Also,
the private data is defined in this driver, so there is no risk of it being
accessed outside of this driver file.

Reviewed-by: Alexandru Ardelean <alex@shruggie.ro>
Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>
Link: https://lore.kernel.org/r/20230802120915.25631-1-aboutphysycs@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/trigger/stm32-lptimer-trigger.c