diff options
| author | Samuel Holland <[email protected]> | 2020-01-15 03:40:45 +0000 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2020-01-15 20:36:34 +0000 |
| commit | 56900d4541a9e2e9263a2db9246e216edad5f928 (patch) | |
| tree | 3617deda0cd290924ffae7c377f1175eb3747d79 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | power: suppy: ucs1002: Make the symbol 'ucs1002_regulator_enable' static (diff) | |
| download | kernel-56900d4541a9e2e9263a2db9246e216edad5f928.tar.gz kernel-56900d4541a9e2e9263a2db9246e216edad5f928.zip | |
power: supply: axp20x_usb_power: Use a match structure
Instead of ad-hoc variant ID checks throughout the code, let's start
moving the variant-specific details to a match structure. This allows
for future flexibility, and it better matches the other axp20x power
supply drivers.
This commit removes most variant checks from axp20x_usb_power_probe().
Other parts of the driver still do ID matching; they are left unchanged
for now.
Reviewed-by: Chen-Yu Tsai <[email protected]>
Signed-off-by: Samuel Holland <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions
