aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/counter
diff options
context:
space:
mode:
authorAlexandru Ardelean <aardelean@deviqon.com>2021-06-30 15:30:29 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-07-13 18:21:53 +0100
commit8b2ac51625ac96afd488d3ddd90c95c3417eb736 (patch)
tree37a4d0b6aba90983b8dd6346140bf41ab3f4755d /drivers/counter
parentLinux 5.14-rc1 (diff)
downloadlinux-dev-8b2ac51625ac96afd488d3ddd90c95c3417eb736.tar.xz
linux-dev-8b2ac51625ac96afd488d3ddd90c95c3417eb736.zip
iio: hid-sensors: bind IIO channels alloc to device object
Some HID drivers use devm_kmemdup() already to clone the template IIO channels information and update it. However, there are still some drivers that kmemdup() and kfree() the channels. This change converts them to use devm_kmemdup() and bind the life-time of this allocated object to the parent device object (in these drivers). Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Link: https://lore.kernel.org/r/20210630123029.759609-1-aardelean@deviqon.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/counter')
0 files changed, 0 insertions, 0 deletions