diff options
| author | Hans de Goede <[email protected]> | 2023-10-04 16:23:16 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2023-10-06 10:34:58 +0000 |
| commit | 5ccf9873ab2bcb7c480bc2ccea55ec235d9db175 (patch) | |
| tree | 537b99bfecb4ae9eabf0f267ce39bd11c636c0f9 /drivers/platform/x86/intel/int3472/discrete.c | |
| parent | platform/x86: int3472: Stop using gpiod_toggle_active_low() (diff) | |
| download | kernel-5ccf9873ab2bcb7c480bc2ccea55ec235d9db175.tar.gz kernel-5ccf9873ab2bcb7c480bc2ccea55ec235d9db175.zip | |
platform/x86: int3472: Switch to devm_get_gpiod()
Switch to devm_get_gpiod() for discrete GPIOs for clks / regulators / LEDs
and let devm do the cleanup for us.
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Reviewed-by: Bartosz Golaszewski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/int3472/discrete.c')
| -rw-r--r-- | drivers/platform/x86/intel/int3472/discrete.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel/int3472/discrete.c b/drivers/platform/x86/intel/int3472/discrete.c index 0bc7cbefd9ae..07b302e09340 100644 --- a/drivers/platform/x86/intel/int3472/discrete.c +++ b/drivers/platform/x86/intel/int3472/discrete.c @@ -119,7 +119,7 @@ skl_int3472_gpiod_get_from_temp_lookup(struct int3472_discrete_device *int3472, return ERR_PTR(ret); gpiod_add_lookup_table(lookup); - desc = gpiod_get(int3472->dev, func, GPIOD_OUT_LOW); + desc = devm_gpiod_get(int3472->dev, func, GPIOD_OUT_LOW); gpiod_remove_lookup_table(lookup); return desc; |
