diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-11-10 15:47:43 +0200 |
|---|---|---|
| committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-11-15 13:31:44 +0200 |
| commit | 2ff64a84bbb3ea0281899766d9a944fd18db7013 (patch) | |
| tree | a44b8341371fb048465d59d51bde902074762e38 /lib/mpi/mpi-sub-ui.c | |
| parent | 507805b83ff108473dba9d4909e41abd50cf07f5 (diff) | |
gpiolib: acpi: shrink devm_acpi_dev_add_driver_gpios()
If all we want to manage is a single pointer, there's no need to
manually allocate and add a new devres. We can simply use
devm_add_action_or_reset() and shrink the code by a good bit.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions
