staging: greybus: Inline gpio_chip_to_gb_gpio_controller()
authorSumitra Sharma <sumitraartsy@gmail.com>
Sat, 25 Mar 2023 08:23:33 +0000 (01:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Mar 2023 08:54:52 +0000 (09:54 +0100)
commitf48198232d605a0d29f1e11235a6f6142b074b39
tree98b2839bd38e0061906391726743ea79a665194f
parent016227800e3b085d90638312bf79d40add8da1e4
staging: greybus: Inline gpio_chip_to_gb_gpio_controller()

Convert 'gpio_chip_to_gb_gpio_controller' 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/3fc5d84a99574ac4a76d26427ac544de375adeb4.1679732179.git.sumitraartsy@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/gpio.c