staging: greybus: Inline pwm_chip_to_gb_pwm_chip()
authorSumitra Sharma <sumitraartsy@gmail.com>
Sun, 26 Mar 2023 06:45:19 +0000 (23:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Mar 2023 06:56:37 +0000 (08:56 +0200)
commitb07c8ef8c60a4714fad3d7c95a8e464ad83ca715
tree0873c81907715b286ccfcec7ca640bfb1cb5820d
parent91de7cdc784f28655eb97de3e66ede0ada94b6eb
staging: greybus: Inline pwm_chip_to_gb_pwm_chip()

Convert 'pwm_chip_to_gb_pwm_chip' from a macro to a static
inline function, to make the relevant types apparent in the
definition and to benefit from the type checking performed by
the compiler at call sites.

Signed-off-by: Sumitra Sharma <sumitraartsy@gmail.com>
Link: https://lore.kernel.org/r/20230326064519.GA179449@sumitra.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/pwm.c