summaryrefslogtreecommitdiffstats
tag nameiio-for-6.9c (13cc1981430c407eb766ea1cf62d64eff00a22d7)
tag date2024-02-29 20:11:30 +0000
tagged byJonathan Cameron <Jonathan.Cameron@huawei.com>
tagged objectcommit 64e19caa55...
downloadiio-for-6.9c.tar.gz
IIO: 3rd set for 6.9 - cleanup.h related.
I have separated this set out from the more normal patches as they can go separately and that may simplify the merge window. Greg, up to you how you wish to handle this in the char-misc tree. Introduces __free() based handling for fwnode_handle_put() to allow scope based release of these handles on early exit from functions. Also introduced device_for_each_child_node_scoped() to provide a a convenient way to process child nodes without the need to explicitly handle the fwnode_handle_put() needed on early exits from the loop. Typically these early exits are a result of error handling or completion of a search and have proven very prone to being missed. One instance of such a leaked resource was found during these conversions though review of that patch was too late for this pull request. A number of drivers are also converted over to generic fwnode handling from the device tree specific version. -----BEGIN PGP SIGNATURE----- iQJFBAABCAAvFiEEbilms4eEBlKRJoGxVIU0mcT0FogFAmXg5t8RHGppYzIzQGtl cm5lbC5vcmcACgkQVIU0mcT0FoiNkRAAi98PYUOK/tkTYEKOS0yCGIbXwbDHIajm CXLMRAJ0YVy8vx+5GUizenkmeSAvJSDH7JByLUnaHi5JqDmK1AqlVZ5H+XEd7fbx cAMmuK8u3AWE8ZTrcGb5qQdmw9ZZZKDQhAOT+lvX8TRGkWGIfM3nEsAsN/0CtO6P Zy0k6BiotSBy/0DWbW10YooV+KSt0qf2A2WoMGDntoVWXvU+YVO5vOKwQZ3T5t/u IG49RNmG4gf47xQ1H1CZeq5S8OZqfT/AwRRR1qZjcUytNlDj711jJ42iz84e+CLM hiI0MishxNFmx0tFHag/j1GO1TX08J4RLFTZWvTDO/i26fMCsDqMWPIWn+hHxG4W RYvIESgH13jK6sjJmxSmKRQkhhIPjfH7ZzR/J6dsOugdMbjxNW1m+l/pB72VlDil BC3iCf7VzdeCzzBNbN1JkdTl068Y8qVumTuCCCBfFz6HqeRbpV4AktxdQzWoWBYk ne8aRQBQq6oyzewiWoUSNyWZezWdo8+LQW9nV2IlGIJbkh/uCbMuuuiHGtgwEsGd oEh9mfEQDub6O4bHYVRdZ6gdwIZdj4paM+s5khfQ17PcflgNoY30IULX0ZpmU5ou nXx7lQLtU9n3KnOVI+9IZBQ6ngN3TEIruyVFzI31Pcjg04iyh/m133tGRd3N4s9T GAhTD0jsuRA= =EevU -----END PGP SIGNATURE-----