aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHeiner Kallweit <[email protected]>2016-09-30 17:42:07 -0300
committerMauro Carvalho Chehab <[email protected]>2016-10-24 18:28:56 -0200
commitddbf7d5a698c4d8553ad2f77cb281d7b37898d34 (patch)
tree19a3fee248db10dea9c2eadaf9b3e4d1ca6714aa /tools/perf/scripts/python
parent8f3408d5a14f3a50253d9e8fd4c443af4af8fa3f (diff)
[media] rc: core: add managed versions of rc_allocate_device and rc_register_device
Introduce managed versions of both functions. They allows to simplify the error path in the probe function of rc drivers, and usually also to simplify the remove function. New element managed_alloc in struct rc_dev is needed to correctly handle mixed use, e.g. managed version of rc_register_device and normal version of rc_allocate_device. In addition devm_rc_allocate_device sets rc->dev.parent as having a reference to the parent device might be useful for future extensions. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions