aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2023-10-11 13:02:03 +0000
committerBartosz Golaszewski <[email protected]>2023-10-13 06:50:04 +0000
commit370232d096e3fe188e4596f77bc6560636bd40c1 (patch)
treef4897b29c370cde5171981b11bb11aa571a2283c /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentgpiolib: provide gpio_device_to_device() (diff)
downloadkernel-370232d096e3fe188e4596f77bc6560636bd40c1.tar.gz
kernel-370232d096e3fe188e4596f77bc6560636bd40c1.zip
gpiolib: provide gpiod_to_gpio_device()
Accessing struct gpio_chip backing a GPIO device is only allowed for the actual providers of that chip. Similarly to how we introduced gpio_device_find() in order to replace the abused gpiochip_find(), let's introduce a counterpart to gpiod_to_chip() that returns a reference to the GPIO device owning the descriptor. This is done in order to later remove gpiod_to_chip() entirely. Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Peter Rosin <[email protected]> Acked-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions